public abstract class AbstractUdpChannel extends Object implements UdpChannel
| Modifier and Type | Field and Description |
|---|---|
protected InetSocketAddress |
address |
protected UdpChannelFactory |
channelFactory |
protected org.granite.gravity.AbstractChannel |
gravityChannel |
MAX_PACKET_SIZE| Constructor and Description |
|---|
AbstractUdpChannel(UdpChannelFactory channelFactory,
org.granite.gravity.AbstractChannel gravityChannel,
InetSocketAddress address) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.granite.gravity.AbstractChannel |
getGravityChannel() |
int |
write(byte[] data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientAddress, getServerPort, writeprotected UdpChannelFactory channelFactory
protected org.granite.gravity.AbstractChannel gravityChannel
protected InetSocketAddress address
public AbstractUdpChannel(UdpChannelFactory channelFactory, org.granite.gravity.AbstractChannel gravityChannel, InetSocketAddress address)
public org.granite.gravity.AbstractChannel getGravityChannel()
getGravityChannel in interface UdpChannelpublic int write(byte[] data) throws IOException
write in interface UdpChannelIOExceptionpublic void close()
close in interface UdpChannel