udt
Class UDTServerSocket2
java.lang.Object
udt.UDTServerSocket2
public class UDTServerSocket2
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDTServerSocket2
public UDTServerSocket2(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
UDTServerSocket2
public UDTServerSocket2(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.