Re: How to create a UDP, broadcast socket with "On-Receive" notifications for WinCE?

From: Paolo Nadotti (info_at_intelis.it)
Date: 04/13/04


Date: Tue, 13 Apr 2004 10:16:00 +0200

Hi Ishan,
I can't help you, sorry, but perhaps you could help me. I'm building a
simple eVB communication software under WinCE and I'm looking for a simple
UDP socket. Do you know one? How I can build mine? Have you got one written
in eVC?
Thanx!

"Ishan Tigunait" <ishan@himalayaninstitute.org> ha scritto nel messaggio
news:55a28c24.0404082028.6be7025d@posting.google.com...
> Any ideas, please?
>
> Is the CAsyncSocket class supposed to have functional callback
> notifications for WinCE, or does only CCeSocket have working callback
> notifications?
>
> Since I need UDP sockets, it doesn't seem like I can use the CCeSocket
> class since it only supports TCP (SOCK_STREAM) sockets. Any ideas on
> an alternative (hopefully easy to implement) way to create a UDP
> socket class that has "OnReceive" functionality, either via built-in
> callbacks or some customized code (polling thread?) ?
>
> It seems strange that the CSocket and CAsyncSocket classes are
> included if Microsoft wanted developers to only the CCeSocket class
> among all the included MFC socket classes.
>
> Any help really appreciated.
>
> Thanks,
> Ishan
>
> ishan@himalayaninstitute.org (Ishan Tigunait) wrote in message
news:<55a28c24.0404070822.27360669@posting.google.com>...
> > I need to create a socket class to be used for discovery broadcasts
> > and acknowledgements (like DHCP). I've done this successfully in
> > Windows XP( Win32/VC++ 6.0), but haven't had success in Windows CE 3.0
> > (Pocket PC 2002).
> >
> > I tried to use the CAsyncSocket class, but haven't been able to get
> > the OnReceive notification to work. Does anyone know if the
> > CAsyncSocket class included with WinCe is capable of asynchronous
> > OnReceive notifications, or if only the CCeSocket class has working
> > notifications?
> >
> > I know about the OnReceive bug for CCeSocket that required manually
> > setting the m_bConnectCalled to TRUE, but don't see how this would
> > work for a connection-less UDP socket.
> >
> > Moreover, if CCeSocket is the only socket class that supports
> > asynchronous notifications in WinCE, does anyone know if its possible
> > to create UDP (SOCK_DGRAM) sockets instead of the default TCP
> > (SOCK_STREAM) sockets? The CCeSocket::Create() doesn't allow
> > specifying this, so I don't see how to create UDP socket class with
> > notifications.
> >
> > Any help or suggestion would be greatly appreciated. Examples of
> > working UDP socket code for WinCE would be great.
> >
> > Thanks,
> > Ishan



Relevant Pages

  • Re: How to create a UDP, broadcast socket with "On-Receive" notifications for WinCE?
    ... simple eVB communication software under WinCE and I'm looking for a simple ... UDP socket. ... > notifications for WinCE, or does only CCeSocket have working callback ... > Since I need UDP sockets, it doesn't seem like I can use the CCeSocket ...
    (microsoft.public.pocketpc.developer.networking)
  • Re: SetSockOpt with SO_REUSEADDR parameter
    ... Later on we switched to UDP. ... I write a server application to send real-time video frame to client. ... Because I will send real-time video frame, I use UDP socket. ...
    (microsoft.public.vc.mfc)
  • Re: SetSockOpt with SO_REUSEADDR parameter
    ... While UDP is probably the correct choice, his error is that he is using a TCP article to ... I write a server application to send real-time video frame to client. ... Because I will send real-time video frame, I use UDP socket. ...
    (microsoft.public.vc.mfc)
  • Re: How full is a UDP socket buffer
    ... > UDP socket and puts them in a buffer in memory (call it the application ... > receiving packets from the UDP socket while T2 is doing I/O? ... > of the incoming packets until T1 gets a chance to recvfrom it. ...
    (comp.unix.programmer)
  • Re: getsockopt function failes
    ... But on "Mio 558" with WinCE 4.2 it works. ... >> I need to send something from PocketPC to network using UDP. ...
    (microsoft.public.windowsce.embedded.vc)