X hits on this document

Powerpoint document

Chapter 10 : Case Study - UNIX - page 30 / 48

123 views

0 shares

0 downloads

0 comments

30 / 48

Ceng 334 - Operating Systems

10-30

Networking in UNIX (2)

Sockets are created and destroyed dynamically

Creating a socket returns a file descriptor, which is needed for establishing a connection, reading data, writing data, and releasing the connection

One party makes a listen call on a local socket, which creates a buffer and blocks until data arrive

The other party makes a connect call giving as parameters the file descriptor of the local socket and the address of a remote socket (a sockets has an address in the network like the internet)

Once a connection is established, a socket functions like a pipe

Document info
Document views123
Page views123
Page last viewedThu Dec 08 10:09:52 UTC 2016
Pages48
Paragraphs407
Words2238

Comments