Groups > Palm OS > Communication Developer Forum > re: Raw Sockets Supported Or Not?




re: Raw Sockets Supported Or Not?

re: Raw Sockets Supported Or Not?
Tue, 9 Oct 2007 22:08:28 -000
Wouldn't you know it that right after I go blabbing about something not working,
I figure out the problem. It turns out that a NetLibSocketBind() call is needed
before the NetLibReceive(). I presume this is because the socket was created in
the netSocketAddrINET domain. I figured that since the entire IP packet had to
be created, that the bind wasn't needed. After I added it back in everything was
fine. And just like NetLibSend(), the IP address argument to NetLibReceive() is
useless. You have to pull it out of the IP header manually. So cool, I now have
a basic ping app on my T|X!
Post Reply
about | contact