Click to See Complete Forum and Search --> : UDP with CCeSocket


jonzuzu
March 24th, 2004, 07:12 AM
Does anybody one who tried and managed to make a UDP application on pocket PC as client and server with CCeSocket that permit to send data in datagram and to receive data from UDP client?
Because i tried and i managed to send data in UDP from Pocket PC to desktops but not from Pocket PC to other Pocket PCs.
i use embedded visual c++ 4.0 and the OnReceive() is never called ont the server side after a SendTo with the client...

Ishan125
April 6th, 2004, 06:52 PM
How did you create a UDP socket using CCeSocket as your base class? I though that CCeSocket only allowed SOCK_STREAM and not SOCK_DGRAM (UDP) sockets?

As far as the OnReceive problems goes, there's a MSDN article about it that should help. See http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q253/9/45.ASP&NoWebContent=1