From: TarasCo on 6 Aug 2007 04:33 > > UDP has no connections :-) > What about connected UDP sockets? In fact, you can create connection for UDP.
From: Maxim S. Shatskih on 7 Aug 2007 08:43 > What about connected UDP sockets? In fact, you can create connection > for UDP. You cannot. connect() for UDP has the semantics of "set default destination address", nothing else. You can use send() after sendto() on UDP after this. You have no flow control with UDP, thus, no connections. -- Maxim Shatskih, Windows DDK MVP StorageCraft Corporation maxim(a)storagecraft.com http://www.storagecraft.com
From: TarasCo on 7 Aug 2007 10:49
> connect() for UDP has the semantics of "set default destination address", > nothing else. You can use send() after sendto() on UDP after this. It is clear. But in fact connection as a file object can be created by tcpip.sys on device named "UDP" for representing UDP "connection". Of course UDP is datagram protocol, not connection oriented. If I call sendto, I'll see TDI_SEND_DATAGRAM request on the transport address file object, if I call send - I'll see TDI_SEND request on the transport connection file object. |