Docsity

Introduction-Network Programming-Lecture Slides, Slides of Network Programming

Partial preview of the text

Download Introduction-Network Programming-Lecture Slides and more Slides Network Programming in PDF only on Docsity!

Network

Programming (Lecture

(Introduction)

-^

Fluency

in

C^

Programming

-^

Data

structures

and

algorithms

-^

Computer

Networks

Required

2

Text

Books

-^

Unix

Network

Programming

,^ Volume

1 ,Third

Edition

o^ W.

Richard

Stevens

,Bill

Fenner ,Andrew

M.

Rudoff

-^

Unix

Network

Programming

,^ Volume

2 ,Second

Edition

o^ W.

Richard

Stevens

-^

Linux

Socket

Programming

‐^ SAMS

-^

Advanced

Programming

in

UNIX

Environment

,^ Second

Edition^ o^

W.^

Richard

Stevens,

Stephen A. Rago

-^

The

Definitive

Guide

to

Linux

Network

Programming

o^ Keir Davis,

John

W.

Turner,

Nathan

Yocom

4

Course

outlines

Introduction TCP/IP The

transport

layer(TCP

and

UDP)

Sockets? TCP

sockets UDP

sockets Advanced

sockets(TCP

and

UDP)

Routing

sockets

Broadcasting Multicasting Practical

implementation

of

all

..

Etc…

Multiple

Clients

Client

Server

Communication

Link

…..^ Client….. Client

7

Sockets

In^

computer

networking,

an

Internet

socket

or

network

socket

is

an

endpoint

of

a^

bidirectional

inter

‐process communication

flow across

an

Internet

Protocol

‐based

computer

network,

such

as

the

Internet.

•^

Socket

Programming:

the

use

of

TCP

and

UDP.

•^

TCP:

Transmission

control

protocol.

•^

connection

‐oriented,

reliable,

full

duplex,

byte

stream

service

  • Interface:

socket,

bind,

listen,

accept,

connect,

read,

write,

close.

  • An

analogy: Socket:

telephone

Bind:

assign

telephone

number

to

a

telephoneListen:

turn

on

the

ringer

so

that

you

can

hear

the

phone

call

Connect:

dial

a^

phone

number

Accept:

answer

the

phone

Read/write:

talking

Close:

???