From what I read (only the very outline, i do not know C Language) a Socket session is established between a server and a client by calling functions for both of them in a certain order.
It starts with the Server:
socket() #creates communication point
bind() #gives this communication point an address
listen() #tells it to be ready for some signal
then the Client:
socket()
connect() #establishes a line between himself and the listening Server
now both can talk with each other by using read() and write().
Well, this was implemented in the C Programming Language, but could this be done also with the Shell and if so would it make any sense doing it this way?