GP2X Creating Sockets


Parkydr

Developing for the GP2X since 2006
Joined
Dec 3, 2005
Messages
1,357
Website
www.parkydr.ezeedsl.co.uk
Would it be possible to set up enough networking (just a loopback device will do) to be able to create sockets without requiring a custom kernel?
 
My guess would be yes, since there are applications like ifconfig and thttpd on there already.

But you never know until you try, of course.

Are you planning on using it for IPC? (which would be a pretty neat thing, come to think of it)
 
RiX0R posted on Feb 20 2006 at 09:45 PM said:
My guess would be yes, since there are applications like ifconfig and thttpd on there already.

But you never know until you try, of course.

Are you planning on using it for IPC? (which would be a pretty neat thing, come to think of it)

ifconfig is available but there are no address families available and even the loopback interface is not defined.

I've been looking at porting Nano-X which has an X compatibility library which could open up a lot of games/apps.

It would be possible to replace the socket code with a different IPC method such as pipes but if sockets worked this would be less effort.
 
Last edited by a moderator:
The next version of cramfs will at least support loopback network, and probably gadget ethernet as well. I've got g_ether talking to a windows host fine, but mac and linux make the gp2x crash in entertaining ways.
 
Parkydr: No, GPH's kernel doesn't have networking, even "ifconfig lo up 127.0.0.1" doesn't work.

theoddbot: Yeah, I was getting kernel panics after the first incoming packet using the CDC Ethernet part of the driver.
 
It will be nice if they fix it. Hopefully they will not fall back to "move to 2.6".
 
Back
Top