public class ComboxRawSocket extends ComboxSocket<java.net.Socket>
| Modifier and Type | Field and Description |
|---|---|
protected static ComboxFactory |
MY_FACTORY |
BUFFER_LENGTH, inputStream, outputStream, receivedBuffer, STREAM_BUFFER_SIZEaccessPoint, available, bufferFactory, CLOSE_SUBCONNECTION, conf, OPEN_BIDIRECTIONAL, peerConnection, PING, remoteCaller, SEND_REMOTE_AP, timeOut| Constructor and Description |
|---|
ComboxRawSocket()
This is used by ServerCombox (server).
|
ComboxRawSocket(java.lang.String networkUUID)
This is used by Combox (client).
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
connectToServer()
Connect to the other side
|
protected boolean |
exportConnectionInfo()
Setup POPRemoteCaller (remoteCaller) variable which is going to be made
available to the user.
|
protected boolean |
receiveNetworkName()
Called by the server client, it will receive the network name This must use
the basic peerConnection capabilities.
|
protected boolean |
sendNetworkName()
Called by the client, it send the name of the network its in.
|
closeInternal, finalize, getSortedAccessPoints, receive, send, serverAccept, toStringbindToBroker, close, close, connectToServer, getAccessPoint, getBufferFactory, getNetworkUUID, getRemoteCaller, handleComboxMessages, makeBidirectional, registerCommuncation, registerNewConnection, serverAccept, setBufferFactory, setNetworkUUIDprotected static final ComboxFactory MY_FACTORY
public ComboxRawSocket()
#serverAccept(java.lang.Object) to let the client connect.public ComboxRawSocket(java.lang.String networkUUID)
#connectToServer(ch.icosys.popjava.core.baseobject.POPAccessPoint, int)
to actually connect the client.networkUUID - the id of the networkprotected boolean connectToServer()
ComboxconnectToServer in class Combox<java.net.Socket>protected boolean sendNetworkName()
ComboxsendNetworkName in class Combox<java.net.Socket>protected boolean receiveNetworkName()
ComboxreceiveNetworkName in class Combox<java.net.Socket>protected boolean exportConnectionInfo()
ComboxexportConnectionInfo in class Combox<java.net.Socket>