socket programming

Programming, for all ages and all languages.
Post Reply
samjkd

socket programming

Post by samjkd »

can someone tell me 'what is socket programming'
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:socket programming

Post by distantvoices »

socket programming is about handling network connections via socket api - so to say, establishing tcp connections/listening to a socket (for servers), sending/receiving data from a connection (tcp) or from a port (udp - which is stateless)

this is the user level side of sockets. the kernel server side is: the socket layer is what is the file abstraction for handling file system calls (open, close, read, write). It hides away all the crucial secrets from the user: the tcp/ip stack, which basically is a set of functions which can either act independently or chained together in an up-down/down-up approach.

Thats only a rough explanation which may include errors and mistakes. C&CW :-)

stay safe
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:socket programming

Post by Pype.Clicker »

The ruling tutorial about socket programming is "Beej Network Programming"
Post Reply