public class KAZipPacketSender
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DefaultDisconnectTimeout |
static int |
DefaultSoTimeout |
protected java.net.InetAddress |
ip_address |
protected int |
port |
Constructor and Description |
---|
KAZipPacketSender(java.lang.String h) |
Modifier and Type | Method and Description |
---|---|
int |
getCost()
returns cost of packet transmissions
|
void |
send(byte[] packet)
sends a packet.
|
void |
send(byte[] packet,
int len)
sends a packet.
|
void |
send(byte[] packet,
int offset,
int len)
sends a packet.
|
void |
shutdown()
closes this sender.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCost
public static int DefaultSoTimeout
public static int DefaultDisconnectTimeout
protected java.net.InetAddress ip_address
protected int port
public KAZipPacketSender(java.lang.String h) throws InvalidSenderException, java.net.UnknownHostException
InvalidSenderException
java.net.UnknownHostException
public void send(byte[] packet, int offset, int len) throws PacketSenderException
PacketSender
send
in interface PacketSender
PacketSenderException
public void shutdown()
PacketSender
shutdown
in interface PacketSender
public void send(byte[] packet) throws PacketSenderException
PacketSender
send
in interface PacketSender
PacketSenderException
public void send(byte[] packet, int len) throws PacketSenderException
PacketSender
send
in interface PacketSender
PacketSenderException
public java.lang.String toString()
toString
in class java.lang.Object
public int getCost()
PacketSender.getCost()
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga