Monday, April 7, 2008
Network Programing with BSD Sockets in C
Let say you have been trying to create a program that uses the network to send data around. Now you have looked and looked and because your program only needs to run on Ubuntu Linux you finally decide, I will use BSD sockets and use to C. After you find an example on wikipedia you copy and make it work. The only problem is you get lost in all the struct running all over the place. It is like structs inside structs. Then there is something about bit order and all you want to do is get take a hostname and send something to it. Well it turns out you need to read http://beej.us/guide/bgnet/output/html/multipage/index.html because it will save you. Good luck and have fun.
Subscribe to:
Post Comments (Atom)
1 comment:
Nice find Paul! At least probably. I've bookmarked it. I hope to read some of it sometime.
Post a Comment