mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
2003-02-13 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc (SocketConnect): This is not implemented yet. (SocketBind): This is not implemented yet. From-SVN: r62833
This commit is contained in:
committed by
Michael Koch
parent
9038b8b4d3
commit
3b95ff5ebb
@@ -38,15 +38,7 @@ gnu::java::nio::SocketChannelImpl::SocketConnect (jint fd,
|
||||
::java::net::InetAddress *addr,
|
||||
jint port)
|
||||
{
|
||||
int result = _Jv_connect_address (fd, addr, port, addr, port);
|
||||
|
||||
if (result < 0)
|
||||
{
|
||||
char* strerr = strerror (errno);
|
||||
throw new ::java::io::IOException (JvNewStringUTF (strerr));
|
||||
}
|
||||
|
||||
return result;
|
||||
throw new ::java::io::IOException (JvNewStringUTF ("SocketConnect not implemented"));
|
||||
}
|
||||
|
||||
jint
|
||||
@@ -54,15 +46,7 @@ gnu::java::nio::SocketChannelImpl::SocketBind (jint fd,
|
||||
::java::net::InetAddress *addr,
|
||||
jint port)
|
||||
{
|
||||
int result = _Jv_bind_address (fd, addr, port);
|
||||
|
||||
if (result < 0)
|
||||
{
|
||||
char* strerr = strerror (errno);
|
||||
throw new ::java::io::IOException (JvNewStringUTF (strerr));
|
||||
}
|
||||
|
||||
return result;
|
||||
throw new ::java::io::IOException (JvNewStringUTF ("SocketBind not implemented"));
|
||||
}
|
||||
|
||||
jint
|
||||
|
||||
Reference in New Issue
Block a user