cs241sp11ds11 - Discussion Section Coding Network Choices...

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

View Full Document Right Arrow Icon
CS 241 Section Week #11 (04/21/11)
Background image of page 1

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

View Full DocumentRight Arrow Icon
HW3 Released last Friday, April 15 th Total of two weeks to work on it Due: Friday, April 29 th , IN-CLASS at 11:00am Questions cover topics from the last half of the semester… useful as an exam review.
Background image of page 2
MP7 Web Server Due: Monday, May 2 nd , 11:59pm What will you be doing? Creating a web-server in C that serves HTML pages and a few types of files found on the web. You won’t test your program using a console! To test: you’ll open up a web browser (such as Firefox, Chrome, IE, it doesn’t matter) and connect to your program.
Background image of page 3

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

View Full DocumentRight Arrow Icon
MP7 MP7 has you create a web server . In today’s programming example, we’ll create a web client . A lot of the calls are identical, so everything is very applicable to the MP.
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background image of page 7

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

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

Unformatted text preview: Discussion Section Coding Network Choices In main lecture, you have seen two different protocols: TCP UDP …what are the differences? …which one do we want to use for a web client? Network Choices In main lecture, you have seen two different roles: Server: socket() bind() listen() accept() Client: gethostbyname() / getaddinfo() socket() connect() Programming! In the ds/ds11/ directory, you’ll find 1.c . Goal: Create a program to make an HTTP request to any given website. Example: ./a.out google.com We provide a lot of the code to connect to the server, you will get to do some of the processing....
View Full Document

This note was uploaded on 04/28/2011 for the course CS 241 taught by Professor Campbell during the Spring '08 term at University of Illinois, Urbana Champaign.

Page1 / 8

cs241sp11ds11 - Discussion Section Coding Network Choices...

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