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
- Next message: huali: "kerberos on wince"
- Previous message: Donghyun, Park: "Covering the system menu!!"
- In reply to: Ishan Tigunait: "Re: How to create a UDP, broadcast socket with "On-Receive" notifications for WinCE?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: huali: "kerberos on wince"
- Previous message: Donghyun, Park: "Covering the system menu!!"
- In reply to: Ishan Tigunait: "Re: How to create a UDP, broadcast socket with "On-Receive" notifications for WinCE?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|