|
| Re: Raw Sockets Supported Or Not? |
 |
Wed, 10 Oct 2007 18:37:42 +020 |
On 2007-10-09, MuffinSpawn <peter@muffinspawn.com> wrote:
> 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!
>
If your only interested in ping on the T|X, it is already in the ROM.
Go to Preferences->Network, then on the network panel tap the menu
bar and and select Options->View Log.
On the Network Log screen you can just type 'ping <whatever>'.
That is all.
This is working on all Palms with internet connectivity.
But, of course programming your own is much more fun ...
Ton van Overbeek
|
| Post Reply
|
|
|
|
|
|
|
|
|
|