udt
Class UDTServerSocket2

java.lang.Object
  extended by udt.UDTServerSocket2

public class UDTServerSocket2
extends Object


Constructor Summary
UDTServerSocket2(InetAddress localAddress, int port)
          create a UDT ServerSocket
UDTServerSocket2(int port)
           
 
Method Summary
 UDTSocket accept()
          listens and blocks until a new client connects and returns a valid UDTSocket for the new connection
 UDPEndPoint getEndpoint()
           
 void shutDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.