public class ClientListener extends java.lang.Object implements PacketListener
Constructor and Description |
---|
ClientListener(java.net.InetAddress address,
int port,
AbstractPacketWorker packetWorker,
boolean usingSSL,
boolean needClientAuth,
int maxPackets) |
Modifier and Type | Method and Description |
---|---|
boolean |
clientRunning() |
TCPClient |
getClient() |
TestPacketOne |
getTestPacket(int count) |
void |
paketArrived(SocketIF socket,
PacketIF packet)
This method is called from the
AbstractPacketWorker thread
once it has reassembled a complete PacketIF on a
SocketIF . |
boolean |
success() |
public ClientListener(java.net.InetAddress address, int port, AbstractPacketWorker packetWorker, boolean usingSSL, boolean needClientAuth, int maxPackets)
public TestPacketOne getTestPacket(int count)
public void paketArrived(SocketIF socket, PacketIF packet)
PacketListener
AbstractPacketWorker
thread
once it has reassembled a complete PacketIF
on a
SocketIF
.paketArrived
in interface PacketListener
socket
- The SocketIF that just had one complete packet reassembledpacket
- The reassembled packet on the SocketIF it arrived onpublic boolean success()
public boolean clientRunning()
public TCPClient getClient()