|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.inet.socket.SocketApplication
Application base class for using InetSocket.
Subclasses must call super.process(Object, Port) to delegate incoming
data to opened sockets.
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary | |
protected SocketMaster |
socketMaster
|
| Constructor Summary | |
SocketApplication()
|
|
SocketApplication(java.lang.String id_)
|
|
| Method Summary | |
void |
acceptFinished(InetSocket serverSocket_,
InetSocket new_)
Called back when accepting a new connection is finished. |
void |
closeFinished(InetSocket socket_)
Called back when a connection is closed. |
void |
connectFinished(InetSocket socket_)
Called back when a connection is established. |
void |
error(InetSocket socket_,
java.io.IOException error_)
Called back when an error occurs during "accept" or "connect". |
java.lang.String |
info()
Returns information regarding this component. |
boolean |
isMultiSessionEnabled()
|
protected void |
process(java.lang.Object data_,
Port inPort_)
The main callback method of a component. |
void |
reset()
Resets the component for being used anew. |
void |
setMultiSessionEnabled(boolean enabled_)
|
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected SocketMaster socketMaster
| Constructor Detail |
public SocketApplication()
public SocketApplication(java.lang.String id_)
| Method Detail |
public void reset()
Component
reset in class Componentpublic java.lang.String info()
Component
info in class Componentpublic boolean isMultiSessionEnabled()
public void setMultiSessionEnabled(boolean enabled_)
public void acceptFinished(InetSocket serverSocket_,
InetSocket new_)
acceptFinished in interface NonblockingSocketHandlerserverSocket_ - where the accepting occurred.new_ - socket for the new connection.public void connectFinished(InetSocket socket_)
connectFinished in interface NonblockingSocketHandlersocket_ - where the connection is established.public void closeFinished(InetSocket socket_)
closeFinished in interface NonblockingSocketHandlersocket_ - where the connection is closed.
public void error(InetSocket socket_,
java.io.IOException error_)
error in interface NonblockingSocketHandlersocket_ - to which the error is related.error_ - the error message.
protected void process(java.lang.Object data_,
Port inPort_)
Component
process in class Componentdata_ - the arrival data.inPort_ - the port where the data arrives.
|
J-Sim v1.2.1-p7 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||