Hello.
I need to convert some small Java source to C#.
Can anybody help me?
=============== =============== =============== =============== =============== =============== ==
private SocketChannel getNBConnSock(S ocketAddress local, SocketAddress
remote, Selector sel) throws Exception {
SocketChannel sock = SocketChannel.o pen();
sock.socket().s etReuseAddress( true);
if (local != null) sock.socket().b ind(local);
sock.configureB locking(false);
SelectionKey sockKey = sock.register(s el, SelectionKey.OP _CONNECT);
sockKey.attach( this);
sock.connect(re mote);
return sock;
}
=============== =============== =============== =============== =============== =============== ==
Thank you
I need to convert some small Java source to C#.
Can anybody help me?
=============== =============== =============== =============== =============== =============== ==
private SocketChannel getNBConnSock(S ocketAddress local, SocketAddress
remote, Selector sel) throws Exception {
SocketChannel sock = SocketChannel.o pen();
sock.socket().s etReuseAddress( true);
if (local != null) sock.socket().b ind(local);
sock.configureB locking(false);
SelectionKey sockKey = sock.register(s el, SelectionKey.OP _CONNECT);
sockKey.attach( this);
sock.connect(re mote);
return sock;
}
=============== =============== =============== =============== =============== =============== ==
Thank you
Comment