public abstract class AbstractTcpPacketTransport extends AbstractPacketTransport
Base class for a TCP-based packet transport
| Modifier and Type | Field and Description |
|---|---|
protected int |
initialPacketBufferSize |
int |
pingInterval |
protected int |
sendQueueMaxSize |
protected int |
socketRecvBufferSize |
protected int |
socketSendBufferSize |
protected int |
streamRecvBufferSize |
protected int |
streamSendBufferSize |
| Constructor and Description |
|---|
AbstractTcpPacketTransport(String id,
boolean client,
Settings settings)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract SocketAddress |
getRemotePeer()
Get the remote peer address
|
String |
getRemotePeerID()
Get an ID representing the transport remote peer
|
getId, isClosed, setListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, needsThrottling, send, startprotected int streamSendBufferSize
protected int streamRecvBufferSize
protected int initialPacketBufferSize
protected int socketSendBufferSize
protected int socketRecvBufferSize
protected int sendQueueMaxSize
public int pingInterval
public final String getRemotePeerID()
PacketTransportpublic abstract SocketAddress getRemotePeer()
Copyright © 2019. All rights reserved.