public class ManagedDatagramSocketBinding extends DatagramSocket implements ManagedBinding
DatagramSocket
binding, automatically registering itself
at the SocketBindingManager
when bound.ManagedBinding.Factory
Modifier and Type | Method and Description |
---|---|
void |
bind(SocketAddress addr) |
void |
close()
Close and unregister this binding.
|
InetSocketAddress |
getBindAddress()
Get the bind address.
|
String |
getSocketBindingName()
Get the optional socket binding configuration name.
|
connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, receive, send, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass
public String getSocketBindingName()
ManagedBinding
getSocketBindingName
in interface ManagedBinding
null
if not availablepublic InetSocketAddress getBindAddress()
ManagedBinding
getBindAddress
in interface ManagedBinding
public void bind(SocketAddress addr) throws SocketException
bind
in class DatagramSocket
SocketException
public void close()
ManagedBinding
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ManagedBinding
close
in class DatagramSocket
Copyright © 2023 JBoss by Red Hat. All rights reserved.