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, setPortpublic UdpTransport()
public UdpTransport(int udpPort)
udpPort - The portpublic UdpTransport(String address, int udpPort)
address - The addressudpPort - The portpublic void init()
init in interface Transportinit in class AbstractTransportpublic org.apache.mina.transport.socket.DatagramAcceptor getAcceptor()
AbstractTransportgetAcceptor in interface TransportgetAcceptor in class AbstractTransportpublic String toString()
toString in class AbstractTransportObject.toString()Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.