예제 #1
0
 /// <summary>
 /// * @param host
 /// * @param port
 /// * @param endpoint
 /// * @throws SocketException,UnknownHostException
 /// </summary>
 /// <param name="endpoint"></param>
 /// <param name="session"></param>
 public UDTSocket(UDPEndPoint endpoint, UDTSession session)
 {
     this.endpoint = endpoint;
     this.session  = session;
     this.receiver = new UDTReceiver(session, endpoint);
     this.sender   = new UDTSender(session, endpoint);
 }
예제 #2
0
 public void setReceiver(UDTReceiver receiver)
 {
     this.receiver = receiver;
 }