public abstract class ComboxSocket<T extends java.net.Socket> extends Combox<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_LENGTH |
protected java.io.InputStream |
inputStream |
protected java.io.OutputStream |
outputStream |
protected byte[] |
receivedBuffer |
protected static int |
STREAM_BUFFER_SIZE |
accessPoint, available, bufferFactory, CLOSE_SUBCONNECTION, conf, OPEN_BIDIRECTIONAL, peerConnection, PING, remoteCaller, SEND_REMOTE_AP, timeOut| Constructor and Description |
|---|
ComboxSocket() |
ComboxSocket(java.lang.String networkUUID) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInternal() |
protected void |
finalize() |
static java.util.List<AccessPoint> |
getSortedAccessPoints(java.lang.String myHost,
POPAccessPoint accessPoint,
java.lang.String protocol) |
int |
receive(POPBuffer buffer,
int requestId,
int connectionID)
Receive buffer from the other side
|
int |
send(POPBuffer buffer)
Send the buffer to the other side
|
protected boolean |
serverAccept()
Server accept connection.
|
java.lang.String |
toString() |
bindToBroker, close, close, connectToServer, connectToServer, exportConnectionInfo, getAccessPoint, getBufferFactory, getNetworkUUID, getRemoteCaller, handleComboxMessages, makeBidirectional, receiveNetworkName, registerCommuncation, registerNewConnection, sendNetworkName, serverAccept, setBufferFactory, setNetworkUUIDpublic static final int BUFFER_LENGTH
protected static final int STREAM_BUFFER_SIZE
protected final byte[] receivedBuffer
protected java.io.InputStream inputStream
protected java.io.OutputStream outputStream
public ComboxSocket()
public ComboxSocket(java.lang.String networkUUID)
protected boolean serverAccept()
Combox#serverAccept(java.lang.Object) serverAccept in class Combox<T extends java.net.Socket>public int receive(POPBuffer buffer, int requestId, int connectionID)
Comboxpublic int send(POPBuffer buffer)
Comboxprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void closeInternal()
closeInternal in class Combox<T extends java.net.Socket>public java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.List<AccessPoint> getSortedAccessPoints(java.lang.String myHost, POPAccessPoint accessPoint, java.lang.String protocol)