public class UdpTransport extends AbstractTransport
acceptor, DEFAULT_BACKLOG_NB, DEFAULT_NB_THREADS, LOCAL_HOST
Constructor and Description |
---|
UdpTransport()
Creates an instance of the UdpTransport class
|
UdpTransport(int udpPort)
Creates an instance of the UdpTransport class on localhost
|
UdpTransport(String address,
int udpPort)
Creates an instance of the UdpTransport class
|
Modifier and Type | Method and Description |
---|---|
org.apache.mina.transport.socket.DatagramAcceptor |
getAcceptor() |
void |
init()
Initialize the Acceptor if needed
|
String |
toString() |
enableSSL, getAddress, getBackLog, getEnableSSL, getNbThreads, getPort, isSSLEnabled, setAddress, setBackLog, setEnableSSL, setNbThreads, setPort
public UdpTransport()
public UdpTransport(int udpPort)
udpPort
- The portpublic UdpTransport(String address, int udpPort)
address
- The addressudpPort
- The portpublic void init()
init
in interface Transport
init
in class AbstractTransport
public org.apache.mina.transport.socket.DatagramAcceptor getAcceptor()
AbstractTransport
getAcceptor
in interface Transport
getAcceptor
in class AbstractTransport
public String toString()
toString
in class AbstractTransport
Object.toString()
Copyright © 2016. All rights reserved.