Public Member Functions | |
void | setOption (int optID, Object value) throws SocketException |
Object | getOption (int optID) throws SocketException |
String | toString () |
Protected Member Functions | |
void | create (boolean stream) throws IOException |
void | connect (String host, int port) throws IOException |
void | connect (InetAddress address, int port) throws IOException |
boolean | connectDone () throws SocketException |
void | bind (InetAddress host, int port) throws IOException |
void | listen (int backlog) throws IOException |
void | accept (NonblockingSocketImpl s) throws IOException |
int | nbAccept (NonblockingSocketImpl s) throws IOException |
InputStream | getInputStream () throws IOException |
OutputStream | getOutputStream () throws IOException |
int | available () throws IOException |
void | close () throws IOException |
void | finalize () throws IOException |
InetAddress | getInetAddress () |
int | getPort () |
int | getLocalPort () |
int | send (DatagramPacket p) throws IOException |
int | receive (DatagramPacket p) throws IOException |
void | disconnect () throws IOException |
NBIOFileDescriptor | getFileDescriptor () |
void | joinGroup (InetAddress address) throws IOException |
void | leaveGroup (InetAddress address) throws IOException |
void | setTimeToLive (int ttl) throws IOException |
int | getTimeToLive () throws IOException |
void | setInterface (InetAddress addr) throws IOException |
void | seeLocalMessages (boolean state) throws IOException |
Package Functions | |
NonblockingSocketImpl () | |
NonblockingSocketImpl (InetAddress address) | |
Private Member Functions | |
native void | nbSocketCreate (boolean stream) |
native void | nbSocketConnect (InetAddress address, int port) throws IOException |
native boolean | nbSocketConnectDone () throws SocketException |
native void | nbSocketBind (InetAddress address, int port) throws IOException |
native void | nbSocketListen (int count) throws IOException |
native int | nbSocketAccept (NonblockingSocketImpl s, boolean block) throws IOException |
native int | nbSocketAvailable () throws IOException |
native void | nbSocketClose () throws IOException |
native int | nbSendTo (DatagramPacket p) throws IOException |
native int | nbReceive (DatagramPacket p) throws IOException |
native void | nbDisconnect () throws SocketException |
native void | nbJoinGroup (InetAddress address) throws IOException |
native void | nbLeaveGroup (InetAddress address) throws IOException |
native void | nbSetTimeToLive (int ttl) throws IOException |
native int | nbGetTimeToLive () throws IOException |
native void | nbSetInterface (InetAddress address) throws IOException |
native void | nbSeeLocalMessages (boolean state) throws IOException |
Private Attributes | |
NBIOFileDescriptor | fd |
InetAddress | address |
int | port |
int | localport |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|