|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Bottom level layer in the MJC layer hierarchy responsible for the basic connection between the client and server side. This layer has to ensure the transfer of the streams between the two sides.
Method Summary | |
java.lang.String |
checkSum(java.lang.String s)
Generates a checksum for a String. |
void |
closeConnections()
Closes all connections of the MJCTransport. |
MJCServerManager |
getServerManager()
Returns the MJCServerManager which will be notified if a client connects. |
java.lang.String |
getTransportName()
Returns the MJC name of the MJCTransport. |
java.lang.String |
getTransportVersion()
Returns the MJC version of the MJCTransport. |
void |
initAsClient(java.lang.String host,
int port)
Initializes the MJCTransport as the client side. |
void |
initAsServer(int port)
Initializes the MJCTransport as the server side. |
void |
setServerManager(MJCServerManager serverManager)
Sets the MJCServerManager which will be notified if a client connects. |
Methods inherited from interface com.monica.javacom.interfaces.MJCWriteable |
flush, getLastWriteableError, getWriteableName, getWriteableVersion, isWriteableConnected, write, write, write |
Methods inherited from interface com.monica.javacom.interfaces.MJCReadable |
getAvailable, getInput, getReadableName, getReadableVersion, getReader, isReadableConnected, setReader |
Methods inherited from interface com.monica.javacom.interfaces.MJCConfigureable |
getConfiguration, setConfiguration |
Methods inherited from interface java.lang.Runnable |
run |
Method Detail |
public java.lang.String getTransportName()
public java.lang.String getTransportVersion()
public void initAsServer(int port) throws java.io.IOException
int
- port: the port where the clients can connectIOException:
- if the server could not be startedpublic void initAsClient(java.lang.String host, int port) throws java.io.IOException
String
- host: the destination hostint
- port: the destination portIOException:
- if the client cannot connect to
the specified host and portpublic void closeConnections()
public java.lang.String checkSum(java.lang.String s)
String:
- the String for which a checksum is neededpublic void setServerManager(MJCServerManager serverManager)
MJCServerManager
- serverManager: the MJCServerManager
that has to be notified if a client connectspublic MJCServerManager getServerManager()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |