DOC PREVIEW
NU EECS 340 - Advanced Sockets

This preview shows page 1-2-3 out of 8 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 8 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Advanced SocketsThe problemThe select callTHE CODEDEMOImportant Points1-52-13Advanced SocketsAshish GuptaTA , Intro to NetworkingJan 14 2004Recital 2Introduction to Networking , Instructor: Prof. Yan ChenThe problemYou are a server and you want to listen for incoming connections as well as keep reading from the connections you already have.•Blocking–"block" is techie jargon for "sleep". •Lots of functions block. –accept() blocks. –All the recv() functions blockThe select callEnables you to deal with many clients at the same timeHOW ?Monitors several sockets at the same time.tell you which ones are ready for reading, which are ready for writing,THE CODEA multi-person chat serverDEMOA multi-person chat serverImportant Points•Accepting new connections via select•Client closes connection–Select returns “socket ready to read”–recv() will return 0.1-5•Transmission Delay•Propagation Delay–Message switched –Packet Switched–Circuit-switched vs Datagram–Differences in : Setup time, Store-and forward delay.2-13•Local Delay + Internet delay•What is Beta and Delta here


View Full Document

NU EECS 340 - Advanced Sockets

Download Advanced Sockets
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Advanced Sockets and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Advanced Sockets 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?