Re: [UDT] about rendezvous connection setup
Brought to you by:
lilyco
From: Yunhong Gu <yu...@la...> - 2006-03-31 05:22:54
|
Hi, You can modify the ./app/appclient.cpp a little bit to use this feature. In ./appclient.cpp first, use setsockopt to enable the rendezvous connection mode: UDT::setsockopt(client, 0, UDT_RENDEZVOUS, new bool(true), sizeof(bool)); second, use bind to set an explict port number. You can copy and paste=20 this part of code from appserver.cpp. Now it is done. You can use "appclient ip1 port1" and "appclient ip2=20 port2" to connect to each other. UDT does not provide a rendezvous server implementation, so how to decide= =20 the ip address and port number depends on specific applications. Thanks Yunhong On Fri, 31 Mar 2006, Mercury wrote: > I want study how to use UDT,but I only care for rendezvous connection set= up. Can you provides a DEMO for rendezvous connection setup. thank you very much! -- =3D=3D=3D=3D=3D=3D=3DMercury=3D=3D=3D=3D=3D=3D=3D __________________ =A9=C7=A9=A5=A9=B6 ; `=A3=AE =A9=C7=A9=A4=A9=B6` .~`=A3=AE =A9=C3=A9=A5=A9=A7=A9=B1=A9=E8=A9=B7=A9=C3=A9=A5=A9=A6 =A9=E7=A9=A5 ` ;=A3= =AE =A9=C1=A9=A4=A9=A7=A9=C7=A9=EC=A9=C8=A9=C7=A9=A5=A9=A7;/ =A9=EC =A8t=A1=D0= =A8A=A1=EE.=A8@ =A9=BB=A9=A5=A9=BC=A9=BB=A9=DC=A9=BF=A9=B8=A9=A5=A9=BF/=A9=A7=A9=DF |