|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.etill.framework.io.ServerSocketComPoint
This is an abstract server ComPoint class for Socket based communications. This class uses an instantiated ServerSocket object to generate socket connections to the Server. The class is used to create concrete classes that establish connections for specific ETillConnection objects. Thus, a concrete class need only override the establishConnection() method.
Fields inherited from interface com.ibm.etill.framework.io.ComPoint |
---|
COMPOINT_CLOSED, COMPOINT_OPEN |
Constructor Summary | |
---|---|
ServerSocketComPoint(int port)
Default Constructor |
|
ServerSocketComPoint(int port,
int timeout)
Default Constructor |
Method Summary | |
---|---|
Socket |
accept()
accept() - Listen on a ServerSocket |
void |
close()
close() - Closes a ServerSocket |
String |
getClassName()
getClassName() |
int |
getLock()
|
int |
getPort()
getPort() -- Returns the port on which this ServerSocket is listening. |
ServerSocket |
getServerSocket()
getServerSocket() -- Returns the Server Socket Object. |
int |
getStatus()
|
int |
getTimeOut()
getTimeOut() |
void |
open()
open() - Opens a ServerSocket |
void |
setClassName(String name)
setClassName() |
void |
setLock(int aLock)
|
String |
toString()
toString() -- converts an ServerSocketComPoint into a printable string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etill.framework.io.ComPoint |
---|
establishConnection |
Constructor Detail |
public ServerSocketComPoint(int port)
listeningPoint
- - An instantiated ServerSocketpublic ServerSocketComPoint(int port, int timeout)
listeningPoint
- - An instantiated ServerSocketMethod Detail |
public int getTimeOut()
public String getClassName()
public void setClassName(String name)
public void open() throws IOException
public String toString()
toString
in class Object
public int getPort()
public ServerSocket getServerSocket()
public Socket accept() throws IOException
public void close() throws IOException
public void setLock(int aLock)
public int getLock()
public int getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |