Unix Socket Programming Tutorial :A Practical Guide for Beginners: A Step By Step Approach by ANMOL GOYAL

Unix Socket Programming Tutorial :A Practical Guide for Beginners: A Step By Step Approach by ANMOL GOYAL

Author:ANMOL GOYAL
Language: eng
Format: azw3
Published: 2017-09-09T07:00:00+00:00


Unix Socket - Quick Guide

* * *

Advertisements

* * *

Previous Page

Next Page

* * *

What is a Socket?

Sockets allow communication between two different processes on the same or different machines. To be more precise, it's a way to talk to other computers using standard Unix file descriptors. In Unix, every I/O action is done by writing or reading a file descriptor. A file descriptor is just an integer associated with an open file and it can be a network connection, a text file, a terminal, or something else.

To a programmer, a socket looks and behaves much like a low-level file descriptor. This is because commands such as read() and write() work with sockets in the same way they do with files and pipes.

Sockets were first introduced in 2.1BSD and subsequently refined into their current form with 4.2BSD. The sockets feature is now available with most current UNIX system releases.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.