csci5211-socket(2)

csci5211-socket(2) - Socket Programming Overview Part I:...

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

View Full Document Right Arrow Icon
CSci5211:                    Socket API 1 Introduction to Socket Programming  Socket Programming Overview Part I: BSD Unix C Socket Programming API Handle asynchronous  input output from multiple socket  descriptors Creating concurrent server Part II: Java Socket Programming Java thread for concurrent server Additional Readings on BSD Socket on class website;  Online Project I Description
Background image of page 1

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

View Full DocumentRight Arrow Icon
CSci5211:                    Socket API 2 Refreshing  Host (NIC card) identified by unique IP address Network application/process identified by port number Network connection identified by a 5-tuple ( src ip, src port, dst ip,  dst port, protocol ) Two kinds of Internet transport services provided to applications Connection-oriented TCP Connectionless UDP 
Background image of page 2
CSci5211:                    Socket API 3 Socket Programming API API: Application Programming  Interface Socket analogous to door  sending process shoves message out door sending process assumes transport  infrastructure on other side of door which  brings message to socket at receiving process host-local, application created/owned, OS- controlled  connection between sockets set-up/managed  by OS process TCP with buffers, variables socket host or server process TCP with buffers, variables socket host or server Internet controlled by OS controlled by app developer
Background image of page 3

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

View Full DocumentRight Arrow Icon
CSci5211:                    Socket API 4 What APIs Needed? How to create socket (door) How to establish connection Client connects to a server Server accepts client req. How to send/recv data How to identify socket Bind to local address/port How to close socket (door) How to create socket How to send/recv data How to identify socket How to close socket Connection-Oriented TCP Connectionless UDP
Background image of page 4
CSci5211:                    Socket API 5 Socket: Conceptual View socket()
Background image of page 5

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

View Full DocumentRight Arrow Icon
CSci5211:                    Socket API 6 What We Will Learn Next Part I The hard way:    but you’ll have a far better understanding how things work! First: BSD Unix C Socket Programming API Socket operations: system calls into OS Second: Writing server and client in C to handle asynchronous   input output from multiple socket descriptors and concurrent server Part II The easier way:        Third: Java Socket Programming Forth: Java Thread for concurrent server
Background image of page 6
CSci5211:                    Socket API 7 BSD Unix C  Socket Programming API (Window has slightly different API) Note: If you only know Java, and don’t want to learn about C socket programming, you can skip this part, and go directly to Slide 58
Background image of page 7

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

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

This note was uploaded on 10/09/2009 for the course CSCI 5211 taught by Professor Staff during the Fall '08 term at Minnesota.

Page1 / 74

csci5211-socket(2) - Socket Programming Overview Part I:...

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

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