|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.inet.socket.InetSocket
This class implements a "socket" equivalent API for application components
in the INET framework. It has nothing to do with JSimSocketImpl.
| Field Summary | |
Port |
controlPort
|
Port |
dataPort
|
| Fields inherited from interface drcl.inet.socket.SocketStates |
ACCEPTING, CLOSED, CLOSING, CONNECTED, CONNECTING, INIT, NO_OP, STATES |
| Constructor Summary | |
InetSocket(long localAddress_,
Port dataPort_,
Port controlPort_)
|
|
InetSocket(Port dataPort_,
Port controlPort_)
|
|
| Method Summary | |
void |
aAccept(java.lang.Object msgID_)
Asynchronized version of accept().
|
InetSocket |
aAcceptFinished(SocketContract.Message reply_,
Port dataPort_)
finishes an asynchronous "accept" when receiving an accept-reply. |
InetSocket |
accept(Port dataPort_)
|
void |
aClose(java.lang.Object msgID_)
Asynchronized version of close().
|
void |
aCloseFinished(SocketContract.Message reply_)
finishes an asynchronous "accept" when receiving an accept-reply. |
void |
aConnect(long remoteAddress_,
int port_,
java.lang.Object msgID_)
Asynchronized version of connect().
|
void |
aConnectFinished(SocketContract.Message reply_)
finishes an asynchronous "connect" when receiving an connect-reply. |
int |
available()
|
void |
bind(long localAddr_,
int localPort_)
|
void |
close()
|
void |
connect(long remoteAddress_,
int port_)
|
java.io.InputStream |
getInputStream()
|
long |
getLocalAddress()
|
int |
getLocalPort()
|
java.lang.Object |
getOption(int optID)
Not implemented. |
java.io.OutputStream |
getOutputStream()
|
long |
getRemoteAddress()
|
int |
getRemotePort()
|
void |
listen(int bufferSize_)
|
void |
sendUrgentData(int data)
Not implemented. |
void |
setOption(int optID,
java.lang.Object value)
Not implemented. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Port dataPort
public Port controlPort
| Constructor Detail |
public InetSocket(Port dataPort_,
Port controlPort_)
public InetSocket(long localAddress_,
Port dataPort_,
Port controlPort_)
| Method Detail |
public int getRemotePort()
public int getLocalPort()
public long getRemoteAddress()
public long getLocalAddress()
public void bind(long localAddr_,
int localPort_)
public void listen(int bufferSize_)
public InetSocket accept(Port dataPort_)
throws java.io.IOException
java.io.IOException
public void aAccept(java.lang.Object msgID_)
throws java.io.IOException
accept().
This call is nonblocking. The caller should call
aAcceptFinished(SocketContract.Message, Port) to finish
the accepting.
java.io.IOException
public InetSocket aAcceptFinished(SocketContract.Message reply_,
Port dataPort_)
throws java.io.IOException
java.io.IOExceptionpublic int available()
public void close()
throws java.io.IOException
java.io.IOExceptionpublic void aClose(java.lang.Object msgID_)
close().
This call is nonblocking. The caller should call
aCloseFinished(SocketContract.Message) to finish
the close.
public void aCloseFinished(SocketContract.Message reply_)
public void connect(long remoteAddress_,
int port_)
throws java.io.IOException
java.io.IOException
public void aConnect(long remoteAddress_,
int port_,
java.lang.Object msgID_)
throws java.io.IOException
connect().
This call is nonblocking. The caller should call
aConnectFinished(SocketContract.Message) to finish
the connecting.
java.io.IOException
public void aConnectFinished(SocketContract.Message reply_)
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
public java.lang.String toString()
public java.lang.Object getOption(int optID)
public void setOption(int optID,
java.lang.Object value)
public void sendUrgentData(int data)
throws java.io.IOException
java.io.IOException
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||