/// <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); }
public void setReceiver(UDTReceiver receiver) { this.receiver = receiver; }