public class TcpConnection extends java.lang.Object implements RawTcpConnection
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpConnection.ConnectionDie |
static class |
TcpConnection.RawMessage |
| Constructor and Description |
|---|
TcpConnection(MTProtoEndpoint endpoint,
MTProtoParams params,
com.droidkit.actors.ActorRef receiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getConnectionId() |
int |
getReceivedPackets() |
int |
getSentPackets() |
boolean |
isBroken() |
boolean |
isClosed() |
void |
postMessage(byte[] data) |
public TcpConnection(MTProtoEndpoint endpoint, MTProtoParams params, com.droidkit.actors.ActorRef receiver) throws java.io.IOException
java.io.IOExceptionpublic int getConnectionId()
getConnectionId in interface RawTcpConnectionpublic int getSentPackets()
public int getReceivedPackets()
public boolean isClosed()
isClosed in interface RawTcpConnectionpublic boolean isBroken()
public void postMessage(byte[] data)
postMessage in interface RawTcpConnectionpublic void close()
close in interface RawTcpConnection