|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents a socket based server program
Field Summary |
Fields inherited from interface com.ireasoning.core.network.NetConst |
TCP, UDP |
Method Summary | |
void |
close()
Closes server socket |
int |
getActiveClientCount()
Gets number of active clients |
MBeanServer |
getMBeanServer()
Returns the MBeanServer object |
Object |
getServerSocket()
Returns the server socket |
int |
getType()
Returns the type of transport layer. |
void |
open(int port,
int backlogOrRecvBufSize)
Open a new server listening on the passed port number |
void |
open(int port,
int backlogOrRecvBufSize,
InetAddress laddr)
Open a new server listening on the passed port number |
int |
process()
Process request |
void |
setDataHandler(com.ireasoning.core.network.DataHandler handler)
Sets data handler |
void |
setDataHandlerFactory(com.ireasoning.core.network.DataHandlerFactory handlerFactory)
Sets data handler factory |
void |
setMaxConnections(int maxConns)
Set max number of concurrent connections |
void |
setMBeanServer(MBeanServer server)
Set MBeanServer object |
void |
setTimeout(int timeout)
Sets timeout value |
Method Detail |
public void open(int port, int backlogOrRecvBufSize, InetAddress laddr) throws IOException
port
- server port numberbacklogOrRecvBufSize
- backlog for TCP socket server, recvBufSize for UDP socket server.laddr
- - local address to bind
IOException
public void open(int port, int backlogOrRecvBufSize) throws IOException
port
- server port numberbacklogOrRecvBufSize
- backlog for TCP socket server, recvBufSize for UDP socket server.
IOException
public void setTimeout(int timeout) throws SocketException
timeout
- time out value, in milliseconds
SocketException
public void close()
public void setDataHandlerFactory(com.ireasoning.core.network.DataHandlerFactory handlerFactory)
public void setDataHandler(com.ireasoning.core.network.DataHandler handler)
public int process() throws IOException
IOException
public int getActiveClientCount()
public void setMaxConnections(int maxConns)
public int getType()
public Object getServerSocket()
public void setMBeanServer(MBeanServer server)
public MBeanServer getMBeanServer()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |