Lec3-CaseStudy-Wang-Jan15-04

Lec3-CaseStudy-Wang-Jan15-04 - Design Case Study: Email...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Design Case Study: Email Protocol COP 3330 © Rong Wang School of Computer Science January 2004 Materials Developed Based on Lecture Notes from Dr. David Workman for Section 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Spring 2004 (c) Dr. David A. Workman 2 Reference Specification Document for the SMTP: http://www.freesoft.org/CIE/RFC/821/index.htm Computer Networks and Internets with Internet Applications, 4 th edition. By Douglas E. Comer, Prentice Hall, 2004, ISBN = 0-13-143351-2
Background image of page 2
Spring 2004 (c) Dr. David A. Workman 3 Socket programming Socket A descriptor to provide interface for network communication Type: integer When an application creates a socket, the application is given a small integer descriptor used to reference the socket If a system uses the same descriptor space for sockets and other I/O, a single application can be used for network communication as well as for local data transfer Each socket has a socket address Structure of Socket address Address family (e.g., IPv4, IPv6, Unix domain protocols, etc.) Port number Internet address
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Spring 2004 (c) Dr. David A. Workman 4 Socket interface structure Family: defines the protocol group: IPv4, IPv6, UNIX domain protocols, and so on Type: defines the type of socket: stream socket, packet socket, or raw socket Protocol: usually set to zero for TCP and UDP Local socket address: local IP address + local port Remote socket address: remote IP address + remote port
Background image of page 4
Spring 2004 (c) Dr. David A. Workman 5 Important Procedures To get the descriptor descriptor = socket (protofamily, type, protocol)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/04/2011 for the course COP 3330 taught by Professor Staff during the Summer '08 term at University of Central Florida.

Page1 / 13

Lec3-CaseStudy-Wang-Jan15-04 - Design Case Study: Email...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online