public class MultiSocketClientListener extends java.lang.Object implements PacketListener
Constructor and Description |
---|
MultiSocketClientListener(java.net.InetAddress address,
int port,
AbstractPacketWorker packetWorker,
boolean usingSSL,
boolean needClientAuth,
int maxPackets,
int socketNo) |
Modifier and Type | Method and Description |
---|---|
boolean |
clientRunning() |
MultiSocketClient |
getClient() |
TestPacketOne |
getTestPacket(int count) |
boolean |
handshakesFinished() |
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 MultiSocketClientListener(java.net.InetAddress address, int port, AbstractPacketWorker packetWorker, boolean usingSSL, boolean needClientAuth, int maxPackets, int socketNo)
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 boolean handshakesFinished()
public MultiSocketClient getClient()