/** * @param host * @param port * @param endpoint * @throws SocketException,UnknownHostException */ 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; }