|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.TcpChannel
public class TcpChannel
A TcpChannel is a channel implementation using the TCP protocol.
| Constructor Summary | |
|---|---|
TcpChannel()
Creates a new TcpChannel instance. |
|
| Method Summary | |
|---|---|
protected void |
acceptClient()
Tells the channel to accept a client. |
protected Socket |
acceptClientSocket()
Called when a client socket should be accepted. |
protected void |
closeServerSocket()
Called when a client was accepted and the server socket should be closed. |
protected static void |
closeSharedServerSocket()
Closes the shared listener socket. |
protected ServerSocket |
createServerSocket()
Creates the server socket for this channel and returns it. |
protected void |
dispose()
Disposes the channel. |
protected String |
getAddress()
Gets the address of the channel. |
protected CommunicationMedium |
getMedium()
Gets the medium over which the channel transports it's data. |
protected NameserverProxy |
getNameserverProxy()
Gets the nameserver proxy with which the channel was created. |
protected void |
initialize()
Initializes the channel. |
protected boolean |
isInitialized()
Returns true if this channel is initialized. |
protected void |
openClientPort()
Tells the channel to open a port for a client. |
protected void |
send(Message message)
Sends the given message over the channel. |
protected void |
setNameserverProxy(NameserverProxy proxy)
Sets the nameserver proxy with which the channel was created. |
protected void |
setServerAddress(String address)
Sets the server address for this channel. |
protected Message |
tryReceive(int timeout,
TimeUnit timeUnit)
Tries to receive a message from the channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpChannel()
| Method Detail |
|---|
protected void send(Message message)
message - The message to send.
protected Message tryReceive(int timeout,
TimeUnit timeUnit)
timeout - The timeout value.timeUnit - The timeout until
protected void dispose()
protected void initialize()
protected boolean isInitialized()
protected void setServerAddress(String address)
address - The address string received from the nameserver.protected void openClientPort()
protected ServerSocket createServerSocket()
protected String getAddress()
protected void acceptClient()
protected static void closeSharedServerSocket()
protected void closeServerSocket()
protected Socket acceptClientSocket()
protected CommunicationMedium getMedium()
protected final void setNameserverProxy(NameserverProxy proxy)
proxy - The proxy.protected final NameserverProxy getNameserverProxy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||