public class ComboxPlugin extends Combox<java.lang.Object>
accessPoint, available, bufferFactory, CLOSE_SUBCONNECTION, conf, OPEN_BIDIRECTIONAL, peerConnection, PING, remoteCaller, SEND_REMOTE_AP, timeOut| Constructor and Description |
|---|
ComboxPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(int connectionID)
Close the connection
|
protected void |
closeInternal() |
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.
|
int |
receive(POPBuffer buffer,
int requestId,
int connectionID)
Receive buffer from the other side
|
protected boolean |
receiveNetworkName()
Called by the server client, it will receive the network name This must use
the basic peerConnection capabilities.
|
int |
send(POPBuffer buffer)
Send the buffer to the other side
|
protected boolean |
sendNetworkName()
Called by the client, it send the name of the network its in.
|
protected boolean |
serverAccept()
Server accept connection.
|
bindToBroker, close, connectToServer, getAccessPoint, getBufferFactory, getNetworkUUID, getRemoteCaller, handleComboxMessages, makeBidirectional, registerCommuncation, registerNewConnection, serverAccept, setBufferFactory, setNetworkUUIDpublic void close(int connectionID)
Comboxprotected boolean connectToServer()
ComboxconnectToServer in class Combox<java.lang.Object>public int receive(POPBuffer buffer, int requestId, int connectionID)
Comboxpublic int send(POPBuffer buffer)
Comboxprotected boolean exportConnectionInfo()
ComboxexportConnectionInfo in class Combox<java.lang.Object>protected boolean sendNetworkName()
ComboxsendNetworkName in class Combox<java.lang.Object>protected boolean receiveNetworkName()
ComboxreceiveNetworkName in class Combox<java.lang.Object>protected boolean serverAccept()
Combox#serverAccept(java.lang.Object) serverAccept in class Combox<java.lang.Object>protected void closeInternal()
closeInternal in class Combox<java.lang.Object>