> If I got you right, an open UPD Socket is always a server socket by default, > that accepts requests from any IP source address, as long as the PORT is > matching? > > And I always have to filter the incoming datagrams with GetRemoteSinIP to > establish a point-to-pont connection?
In most common scenarios you are acting as: 1) UDP server - Bind to local port. When you receive a datagram, next sending operation send datagram back as reply. 2) UDP client - Connect to remote address and port. Send query datagram to remote server and next Recv operation reads server reply. See, you not need any special handling in these typical scenarios. If you need to have point-to-point channel and send/receive data randomly, isn't TCP stream better solution? BTW: UDP is dataram based, it is not a byte stream. So, you need to read full datagram, not just a first byte. Take a look for RecvPacket method, even you wish just first byte from the datagram. -- Lukas Gebauer. http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib. https://www.geoget.cz/ - Geocaching solution _______________________________________________ synalist-public mailing list synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public