Outline: ATM, Sockets Programming



ATM



ATM Switching



Example

Figure 2.8



ATM QoS



Sockets: Overview



socket system call



connect system call



IP address

struct hostent * hostentry;
struct sockaddrin sin;
struct sockaddr * sap =
   (struct sockaddr *) &sin;

hostentry = gethostbyname("maru.ics.hawaii.edu"); if ((hostentry == NULL) || (hostentry->haddrlist == NULL)) error("gethostbyname"); bzero (&sin, sizeof (sin)); sin.sinfamily = AFINET; bcopy(hostentry->haddrlist[0], &(sin.sinaddr), hostentry->hlength); sin.sinport = htons(portnumber); if (connect(s, sap, sizeof(sin)) < 0) error("connect");


Notes:


Skip this slide unless we have plenty of time.



bind



listen



accept



read


Notes:


Skip this and the next two depending on time.



write



close



Homework 1