org.granite.gravity.udp
Interface UdpChannel

All Known Implementing Classes:
AbstractUdpChannel, UdpIOChannel, UdpNIOChannel

public interface UdpChannel

Author:
Franck WOLFF

Field Summary
static int MAX_PACKET_SIZE
           
 
Method Summary
 void close()
           
 SocketAddress getClientAddress()
           
 org.granite.gravity.AbstractChannel getGravityChannel()
           
 int getServerPort()
           
 int write(byte[] data)
           
 int write(byte[] data, int offset, int length)
           
 

Field Detail

MAX_PACKET_SIZE

static final int MAX_PACKET_SIZE
See Also:
Constant Field Values
Method Detail

getGravityChannel

org.granite.gravity.AbstractChannel getGravityChannel()

getClientAddress

SocketAddress getClientAddress()

getServerPort

int getServerPort()

write

int write(byte[] data)
          throws IOException
Throws:
IOException

write

int write(byte[] data,
          int offset,
          int length)
          throws IOException
Throws:
IOException

close

void close()