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