Re: Pocket PC UDP and Multicast
From: AliR (AliR_at_newsgroup.nospam)
Date: 01/27/05
- Next message: Eugene Gershnik: "Re: NetServerEnum fails on large networks"
- Previous message: hema mv: "Re: Redirecting connections - other technologies"
- In reply to: AliR: "Pocket PC UDP and Multicast"
- Next in thread: Rhett Gong [MSFT]: "Re: Pocket PC UDP and Multicast"
- Reply: Rhett Gong [MSFT]: "Re: Pocket PC UDP and Multicast"
- Reply: Arkady Frenkel: "Re: Pocket PC UDP and Multicast"
- Messages sorted by: [ date ] [ thread ]
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.
>
>
- Next message: Eugene Gershnik: "Re: NetServerEnum fails on large networks"
- Previous message: hema mv: "Re: Redirecting connections - other technologies"
- In reply to: AliR: "Pocket PC UDP and Multicast"
- Next in thread: Rhett Gong [MSFT]: "Re: Pocket PC UDP and Multicast"
- Reply: Rhett Gong [MSFT]: "Re: Pocket PC UDP and Multicast"
- Reply: Arkady Frenkel: "Re: Pocket PC UDP and Multicast"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|