Re: Pocket PC UDP and Multicast

From: AliR (AliR_at_newsgroup.nospam)
Date: 01/27/05


Date: Thu, 27 Jan 2005 20:16:11 GMT

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
    ... Be aware that not only UDP but TCP implementation of CCeSocket have suffered ... and set it to true after I create my UDP socket. ... >> Then the server turns around and sends a UDP packet back to the pocket ...
    (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)