Re: Pocket PC UDP and Multicast

From: Arkady Frenkel (arkadyf_at_hotmailxdotxcom)
Date: 01/28/05


Date: Fri, 28 Jan 2005 12:34:32 +0200

Be aware that not only UDP but TCP implementation of CCeSocket have suffered
( at least in past ) from different bugs ( you can googlize that in CE
newsgroups ).
Arkady

"AliR" <AliR@newsgroup.nospam> wrote in message
news:f_bKd.24797$iC4.18801@newssvr30.news.prodigy.com...
> I found the problem. It's in DataThread (wcesock.cpp). It checks that
> m_bConnectCalled is true, but CCeSocket never sets it to TRUE for UDP
> sockets!!! Anyway, as a workaround I changed it in CCeSocket to a public
> variable, and set it to true after I create my UDP socket. It works but
it
> is making debuging hell since I keep getting an ASSERT when DoRead is
trying
> to see if the socket is listening or not.
> Someone at microsoft needs to take a good look at the DataThread and
DoRead
> functions.
>
> AliR.
>
> "AliR" <AliR@newsgroup.nospam> wrote in message
> news:guVJd.19847$wi2.16147@newssvr11.news.prodigy.com...
> > Hi Everyone,
> >
> > I have two problems that I am trying to solve.
> >
> > 1. I am trying to send and receive UDP packets using CCeSocket on a
> > PocketPC ver 3.0.x.x. I am able to send using a broadcast address
(simply
> > passing NULL as the address to SendTo), and my server receives the
> message.
> > Then the server turns around and sends a UDP packet back to the pocket
pc
> > client using it's address and port (I have even tried broadcasting it).
> But
> > nothing gets triggered at my client to read the data.
> >
> > 2. I am trying to open a multicast socket with address 224.1.10.10 and
> port
> > 29306, but i get an error 10049 (WSAEADDRNOTAVAIL)
> >
> > Any idea on how to solve these two problems?
> >
> > AliR.
> >
> >
>
>



Relevant Pages

  • Re: How to create a UDP, broadcast socket with "On-Receive" notifications for WinCE?
    ... 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 ... among all the included MFC socket classes. ...
    (microsoft.public.pocketpc.developer)
  • Re: How to create a UDP, broadcast socket with "On-Receive" notifications for WinCE?
    ... 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 ... among all the included MFC socket classes. ...
    (microsoft.public.pocketpc.developer.networking)
  • Re: Pocket PC UDP and Multicast
    ... but CCeSocket never sets it to TRUE for UDP ... and set it to true after I create my UDP socket. ... Someone at microsoft needs to take a good look at the DataThread and DoRead ...
    (microsoft.public.win32.programmer.networks)
  • Re: SetSockOpt with SO_REUSEADDR parameter
    ... So I create multiple UDP sockets with the same port to send data. ... happening is that you are throwing away the old socket and replacing it with the new ... When the second client is connecting to server, I still get the error code ...
    (microsoft.public.vc.mfc)
  • Re: Socket connect vs. bind? What is the difference
    ... Actually, if you're doing UDP Multicast, you don't need to connect. ... to call Connect to establish a TCP connection to the remote IPEndPoint. ... is connectionless, so it isn't even necessary to establish a connection to ... It can be set with an overload of the Socket constructor. ...
    (microsoft.public.dotnet.languages.csharp)