Network application development on beagle board

Hi all,

I want to develoop minimal network module which will obtain IP via dhcp server.
I know that I can directly use udhcpc available.
But I don’t want all other unrequired things in it.
So can anybody suggest good link or book for network programming using sockets.

Thanks & regards,
Omkar

For details of the DHCP protocol: http://www.ietf.org/rfc/rfc2131.txt
For socket programming introduction: http://www.linuxjournal.com/article/2333

Have you considered using BusyBox, it contains a udhcpc implementation
as an applet, and if you are using BusyBox anyway as your source of commands
the overhead is minimal. All you have to do is enable udhcpc in your
BusyBox configuration (you may even find that this is actually the way
it is implemented depending on what you are actually running on your Beagle
Board).

David

Thanks all for your help.
I will look into the busybox code.
Actually busybox has udhcpc enabled which I don’t want to invoke from my module as it’s failure is difficult to catch.
I will try to re implement minimal code of busybox in my module.

Thanks and regards,
Omkar