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, waitgetCostpublic 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
InvalidSenderExceptionjava.net.UnknownHostExceptionpublic void send(byte[] packet,
int offset,
int len)
throws PacketSenderException
PacketSendersend in interface PacketSenderPacketSenderExceptionpublic void shutdown()
PacketSendershutdown in interface PacketSenderpublic void send(byte[] packet)
throws PacketSenderException
PacketSendersend in interface PacketSenderPacketSenderExceptionpublic void send(byte[] packet,
int len)
throws PacketSenderException
PacketSendersend in interface PacketSenderPacketSenderExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getCost()
PacketSender.getCost()
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga