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 |
seda.nbio.NonblockingSocketImpl.NonblockingSocketImpl | ( | ) | [package] |
seda.nbio.NonblockingSocketImpl.NonblockingSocketImpl | ( | InetAddress | address | ) | [package] |
void seda.nbio.NonblockingSocketImpl.accept | ( | NonblockingSocketImpl | s | ) | throws IOException [protected] |
int seda.nbio.NonblockingSocketImpl.available | ( | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.bind | ( | InetAddress | host, | |
int | port | |||
) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.close | ( | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.connect | ( | InetAddress | address, | |
int | port | |||
) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.connect | ( | String | host, | |
int | port | |||
) | throws IOException [protected] |
boolean seda.nbio.NonblockingSocketImpl.connectDone | ( | ) | throws SocketException [protected] |
void seda.nbio.NonblockingSocketImpl.create | ( | boolean | stream | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.disconnect | ( | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.finalize | ( | ) | throws IOException [protected] |
NBIOFileDescriptor seda.nbio.NonblockingSocketImpl.getFileDescriptor | ( | ) | [protected] |
InetAddress seda.nbio.NonblockingSocketImpl.getInetAddress | ( | ) | [protected] |
InputStream seda.nbio.NonblockingSocketImpl.getInputStream | ( | ) | throws IOException [protected] |
int seda.nbio.NonblockingSocketImpl.getLocalPort | ( | ) | [protected] |
Object seda.nbio.NonblockingSocketImpl.getOption | ( | int | optID | ) | throws SocketException |
OutputStream seda.nbio.NonblockingSocketImpl.getOutputStream | ( | ) | throws IOException [protected] |
int seda.nbio.NonblockingSocketImpl.getPort | ( | ) | [protected] |
int seda.nbio.NonblockingSocketImpl.getTimeToLive | ( | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.joinGroup | ( | InetAddress | address | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.leaveGroup | ( | InetAddress | address | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.listen | ( | int | backlog | ) | throws IOException [protected] |
int seda.nbio.NonblockingSocketImpl.nbAccept | ( | NonblockingSocketImpl | s | ) | throws IOException [protected] |
native void seda.nbio.NonblockingSocketImpl.nbDisconnect | ( | ) | throws SocketException [private] |
native int seda.nbio.NonblockingSocketImpl.nbGetTimeToLive | ( | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbJoinGroup | ( | InetAddress | address | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbLeaveGroup | ( | InetAddress | address | ) | throws IOException [private] |
native int seda.nbio.NonblockingSocketImpl.nbReceive | ( | DatagramPacket | p | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSeeLocalMessages | ( | boolean | state | ) | throws IOException [private] |
native int seda.nbio.NonblockingSocketImpl.nbSendTo | ( | DatagramPacket | p | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSetInterface | ( | InetAddress | address | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSetTimeToLive | ( | int | ttl | ) | throws IOException [private] |
native int seda.nbio.NonblockingSocketImpl.nbSocketAccept | ( | NonblockingSocketImpl | s, | |
boolean | block | |||
) | throws IOException [private] |
native int seda.nbio.NonblockingSocketImpl.nbSocketAvailable | ( | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSocketBind | ( | InetAddress | address, | |
int | port | |||
) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSocketClose | ( | ) | throws IOException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSocketConnect | ( | InetAddress | address, | |
int | port | |||
) | throws IOException [private] |
native boolean seda.nbio.NonblockingSocketImpl.nbSocketConnectDone | ( | ) | throws SocketException [private] |
native void seda.nbio.NonblockingSocketImpl.nbSocketCreate | ( | boolean | stream | ) | [private] |
native void seda.nbio.NonblockingSocketImpl.nbSocketListen | ( | int | count | ) | throws IOException [private] |
int seda.nbio.NonblockingSocketImpl.receive | ( | DatagramPacket | p | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.seeLocalMessages | ( | boolean | state | ) | throws IOException [protected] |
int seda.nbio.NonblockingSocketImpl.send | ( | DatagramPacket | p | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.setInterface | ( | InetAddress | addr | ) | throws IOException [protected] |
void seda.nbio.NonblockingSocketImpl.setOption | ( | int | optID, | |
Object | value | |||
) | throws SocketException |
void seda.nbio.NonblockingSocketImpl.setTimeToLive | ( | int | ttl | ) | throws IOException [protected] |
String seda.nbio.NonblockingSocketImpl.toString | ( | ) |
InetAddress seda.nbio.NonblockingSocketImpl.address [private] |
int seda.nbio.NonblockingSocketImpl.localport [private] |
int seda.nbio.NonblockingSocketImpl.port [private] |