SOCKETS


Click here to start

Table of contents

SOCKETS

The Socket Interface

Approach

TCP/IP

Concurrency

Fork (Cont’d)

Basic I/O Functions in UNIX

Using I/O in UNIX

Using UNIX I/O with TCP/IP

Descriptor Table

Slide 11

Passive/Active Socket

Sockets

Socket Functions

Socket Functions (Cont’d)

Data Conversion Functions

Slide 17

TCP vs. UDP

TCP vs. UDP (Cont’d)

Selecting UDP

Selecting TCP

OSI Layers vs. TCP/IP

Client Architecture

Socket Address Structure

Domain Name Structure

Example:

Service Structure

Example:

The Protocol Structure

ACCEPT

Slide 31

BIND

CLOSE

CONNECT

GETHOSTBYNAME

GETPROTOBYNAME

LISTEN

GETSERVBYNAME

READ

RECV

RECVFROM

SELECT

SELECT (Cont’d)

SEND

SENDTO

SOCKET

WRITE

References

Author: Vahid Moghaddasi

E-mail: cis432@cis.njit.edu

Homepage: http://www.cis.njit.edu/~vahid

Further information:
Advanced Operating Systems

Download presentation