Coder's Guild Mailing List

Re: C Sockets

Posted by Matthew Pratt on 1999-05-21

--- Bernie Siegrist <null@xxxx.xx> wrote:
> Could anybody please explain me how to create a TCP
> socket and send/receive
> data in C? I'm absolutely stuck. (I'm using FreeBSD
> by the way.) Thx in
> advance!

Heres some links:

http://www.lowtek.com/sockets/
http://www.ecst.csuchico.edu/~beej/guide/net/#sendrecv
http://www.cs.buffalo.edu/~milun/unix.programming.html
http://www.foobar.co.uk/~simon/net/
http://www.linuxprogramming.com/
http://www.ee.mu.oz.au/linux/programming/

Basically the BSD tcp/ip implimentaation is the yard
stick for every thing else so any Unix/Linux code
should compile and run on BSD.

Also man pages are your friend. Look at the following
man pages:
socket
accept
listen
bind
connect
read
write

Then there is the socket faq:
http://www.lcg.org/sock-faq/

And dont forget you have a work of free code to look
at too.


===
Matty                                       .
http://members.xoom.com/mattpratt/      _--_|\
mattpratt@xxxxx.xxx                    /      \
s3099239@xxxxxxx.xxx.xxx.xx            \_.--._/<--Canberra,
W2K - The other millenium bug.               v    Australia

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com