public class TcpContext extends Object implements PyroClientListener
| Constructor and Description |
|---|
TcpContext(MTProto proto,
String ip,
int port,
TcpContextCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
connectedClient(PyroClient client) |
void |
disconnectedClient(PyroClient client) |
void |
droppedClient(PyroClient client,
IOException cause) |
int |
getContextId() |
void |
postMessage(byte[] data,
boolean useFastConfirm) |
void |
receivedData(PyroClient client,
ByteBuffer data) |
void |
sentData(PyroClient client,
int bytes) |
void |
suspendConnection(boolean task) |
void |
unconnectableClient(PyroClient client,
Exception cause) |
public TcpContext(MTProto proto, String ip, int port, TcpContextCallback callback)
public int getContextId()
public void postMessage(byte[] data,
boolean useFastConfirm)
public void connectedClient(PyroClient client)
connectedClient in interface PyroClientListenerpublic void unconnectableClient(PyroClient client, Exception cause)
unconnectableClient in interface PyroClientListenerpublic void droppedClient(PyroClient client, IOException cause)
droppedClient in interface PyroClientListenerpublic void disconnectedClient(PyroClient client)
disconnectedClient in interface PyroClientListenerpublic void receivedData(PyroClient client, ByteBuffer data)
receivedData in interface PyroClientListenerpublic void sentData(PyroClient client, int bytes)
sentData in interface PyroClientListenerpublic void connect()
public void suspendConnection(boolean task)
Copyright © 2016. All rights reserved.