[twsocket] UDP SendTo

2006-08-23 Thread Arno Garrels
Hello, I would like to send datagrams thru SendTo() instead of Send() in order to bypass copying data to TWSocket's send buffer. When I call SendTo() I have to handle possible errors by myself, but I do not understand exactely whether it's possible that the function returns a positive result

Re: [twsocket] UDP SendTo

2006-08-23 Thread Arno Garrels
Hello, This UDP stuff is driving me nuts. Maximum outbound (send) size of a message returned by getsockopt as described below is 65507 bytes on my w2k box. Up to this size datagrams go over the wire. However if I SendTo a bigger datagram up to 65527 bytes then SendTo happily returns success even

Re: [twsocket] UDP SendTo() sends two packets?

2006-05-04 Thread Francois PIETTE
AM Subject: [twsocket] UDP SendTo() sends two packets? I have the code to listen on a UDP port when the first button is clicked, and send a packet when the second button is clicked. It works fine except when the second button is clicked, it sends two packets (I captured that with Ethereal

Re: [twsocket] UDP SendTo() sends two packets?

2006-05-04 Thread Wilfried Mestdagh
Hello Jack, Do you send to a broadcast address or to a specific address ? Do you have 1 or 2 IP addresses in the sending machine ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, May 3, 2006, 00:52, Jack wrote: I have the code

[twsocket] UDP SendTo() sends two packets?

2006-05-02 Thread Jack
I have the code to listen on a UDP port when the first button is clicked, and send a packet when the second button is clicked. It works fine except when the second button is clicked, it sends two packets (I captured that with Ethereal.) Is there anything I'm not doing right? -- Best regards,