udt
Class UDTServerSocket
java.lang.Object
udt.UDTServerSocket
public class UDTServerSocket
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDTServerSocket
public UDTServerSocket(InetAddress localAddress,
int port)
throws SocketException,
UnknownHostException
- create a UDT ServerSocket
- Parameters:
localAddress - port - - the local port. If 0, an ephemeral port will be chosen
- Throws:
SocketException
UnknownHostException
UDTServerSocket
public UDTServerSocket(UDPEndPoint endpoint)
throws SocketException,
UnknownHostException
- create a UDT ServerSocket
- Parameters:
localAddress - port - - the local port. If 0, an ephemeral port will be chosen
- Throws:
SocketException
UnknownHostException
UDTServerSocket
public UDTServerSocket(int port)
throws SocketException,
UnknownHostException
- Throws:
SocketException
UnknownHostException
accept
public UDTSocket accept()
throws InterruptedException
- listens and blocks until a new client connects and returns a valid
UDTSocket
for the new connection
- Returns:
-
- Throws:
InterruptedException
shutDown
public void shutDown()
getEndpoint
public UDPEndPoint getEndpoint()
Copyright © 2013 LittleShoot. All Rights Reserved.