This is just some basics of networking.
BSD Sockets (Berkely Software Distribution)
The socket API exists in most programming languages. It is usually something like this.
Socket - create a new connection endpoint bind - listen accept connect send recieve close