Network programming ( online course ) Jen-Yi Pan 20131016.

Slides:



Advertisements
Similar presentations
CCNA1 v3 Module 9 v3 CCNA 1 Module 9 JEOPARDY K. Martin Galo Valencia.
Advertisements

Today’s topic: Basic TCP API –Socket –Bind –Listen –Connect –Accept –Read –Write –Close.
上台報告注意事項 Web Applications and Programming. 注意事項 1. 相同 IDEA 請比較差異,若無比較,視為抄襲 2. 報告日期 :12/28 、 1/2 、 1/4 3. 每組上台報告 6 分鐘 4. 請於報告前一天 (23:59 前 ) 將投影片 MAIL 給助教.
Elementary TCP Sockets Computer Networks Computer Networks Term B10 UNIX Network Programming Vol. 1, Second Ed. Stevens Chapter 4.
Networks: TCP/IP Socket Calls1 Elementary TCP Sockets Chapter 4 UNIX Network Programming Vol. 1, Second Ed. Stevens.
Quick Overview. 2 ISO/OSI Reference Model Application Application Presentation Presentation Session Session Transport Transport Network Network Data Link.
Research Work For This Year Investigate queries with “GROUP BY” or “COUNT” over P2P network –E.g. Count the number of copies having some requested keyword.
Tutorial 8 Socket Programming
CS 311 – Lecture 18 Outline IPC via Sockets – Server side socket() bind() accept() listen() – Client side connect() Lecture 181CS Operating Systems.
Socket Addresses. Domains Internet domains –familiar with these Unix domains –for processes communicating on the same hosts –not sure of widespread use.
1 Tutorial on Socket Programming Computer Networks - CSC 458 Department of Computer Science Yukun Zhu (Slides are mainly from Monia Ghobadi, and Amin Tootoonchian,
Basic Socket Programming TCP/IP overview. TCP interface Reference: –UNIX Network Programming, by Richard Stevens. –UNIX man page.
TCP Socket Programming. r An abstract interface provided to the application programmer  File descriptor, allows apps to read/write to the network r Allows.
1 Networking (Stack and Sockets API). 2 Topic Overview Introduction –Protocol Models –Linux Kernel Support TCP/IP Sockets –Usage –Attributes –Example.
Fall 2000Datacom 11 Socket Programming Review Examples: Client and Server-Diagnostics UDP versus TCP Echo.
Operating Systems Chapter 9 Distributed Communication.
Client-Side Network Programming
CS345 Operating Systems Φροντιστήριο Άσκησης 2. Inter-process communication Exchange data among processes Methods –Signal –Pipe –Sockets.
Network programming ( online course ) Jen-Yi Pan
Connecting Networks © 2004 Cisco Systems, Inc. All rights reserved. Exploring How IP Address Protocols Work INTRO v2.0—4-1.
Week 13 - Monday.  What did we talk about last time?  Low level file I/O practice  File systems.
Award for Award for Excellent Performance in Excellent Performance in English Week Competition Spring Semester,2008 English Week Competition Spring Semester,2008.
Server Sockets: A server socket listens on a given port Many different clients may be connecting to that port Ideally, you would like a separate file descriptor.
The Pocket Guide to TCP/IP Sockets: C Version Michael J. Donahoo Kenneth L. Calvert.
1 Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr. Nasser Yazdani Lecture 3: Sockets.
TELE202 Lecture 15 Socket programming 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »TCP/UDP (2) »Source: chapter 17 ¥This Lecture »Socket programming.
Elementary TCP Sockets UNIX Network Programming Vol. 1, Second Ed. Stevens Chapter 4.
Award for Award for Excellent Performance in Excellent Performance in English Week Competition Spring Semester,2009 English Week Competition Spring Semester,2009.
Introduction to Socket
Socket Programming Tutorial Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki
Socket Programming Lab 1 1CS Computer Networks.
1 Sockets Programming Socket to me!. 2 Network Application Programming Interface (API) The services provided by the operating system that provide the.
2: Application Layer1 Chapter 2: Application layer r 2.1 Principles of network applications r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail  SMTP,
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: HsinYu Ha.
Award for Award for Excellent Performance in Excellent Performance in English Week Competition Spring Semester,2010 English Week Competition Spring Semester,2010.
Socket address structures Byte ordering IP address conversion
( Address Resolution Protocol )
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
CSCI 330 UNIX and Network Programming Unit XIV: User Datagram Protocol.
回到第一頁 Client/sever model n Client asks (request) – server provides (response) n Typically: single server - multiple clients n The server does not need.
0 Mid-term Exam. 1. Written Exam. 2. Oral Presentation 1. Written Exam Date: 11/28 Range: Chapters
In unistd.h : int gethostname(char * name, int maxlen) Purpose : Find the computer's name.
1 Spring Semester 2008, Dept. of Computer Science, Technion Internet Networking recitation #7 Socket Programming.
Advanced UNIX programming Fall 2002 Instructor: Ashok Srinivasan Lecture 17 Acknowledgements: The syllabus and power point presentations are modified versions.
Monthly Highlight. Club Members Attendance Award.
Socket Programming in C CS587x Lecture 3 Department of Computer Science Iowa State University.
Socket Programming(1/2). Outline  1. Introduction to Network Programming  2. Network Architecture – Client/Server Model  3. TCP Socket Programming.
1 Socket Interface. 2 Basic Sockets API Review Socket Library TCPUDP IP EthernetPPP ARP DHCP, Mail, WWW, TELNET, FTP... Network cardCom Layer 4 / Transport.
Course Syllabus  Text Book: B. A. Forouzan, “ TCP/IP Protocol Suite ”, 3rd. ed., McGraw-Hill, 2005  Instructor 張軒彬, Office Number:
CSE 333 – SECTION 8 Client-Side Network Programming.
UDP Socket Programming
Chapter 21 Address Mapping
Jim Fawcett CSE 681 – Software Modeling & Analysis Fall 2002
Socket Programming (Cont.)
The Pocket Guide to TCP/IP Sockets: C Version
Network Programming CSC- 341
Network Programming with Sockets
Transport layer API: Socket Programming
Socket Programming in C
Things that are nice to know when you’re doing this project
Chapter 3 Sockets Introduction
Socket 程式設計.
ECS152b Behrooz Khorashadi
Socket Programming(1/2)
Sockets Programming Socket to me!.
Sockets Programming Socket to me!.
in unistd.h: int gethostname(char * name, int maxlen)
Sockets.
Today’s topic: Basic TCP API
Jim Fawcett CSE 681 – Software Modeling & Analysis Summer 2003
Presentation transcript:

Network programming ( online course ) Jen-Yi Pan

Outline  Attendance  Icebreaking activities  Course  DEMO  Summary of the day

Attendance 李威龍張晏誠吳建明劉哲安 李韋忠林登堡凃咨宸許名宏 吳昊穎李宗耀陳毅融尉遲仲涵 林原甲林家豐周永銘曾芸瑩 郭威良王維寬 1.Taking attendance by signing your name in the following grid 2.Type your English nick name beside your Chinese name

Grouping chapter 1 5, 6 凃咨宸 林原甲 chapter 2 4, 7 李宗耀 周永銘 chapter 3 3, 8 張晏誠 許名宏 chapter 4 2, 9 李韋忠 王維寬 chapter 5 1, 10, 17, 18 吳建明 劉哲安 吳昊穎 曾芸瑩 chapter 6 11, 16 林登堡 郭威良 chapter 7 12, 15 陳毅融 林家豐 chapter 8 13, 14 李威龍 尉遲仲涵

Icebreaking activities(1) Chapter 1 Which protocol supports translating an IP address into a MAC address? (a) RARP (b) DHCP (c) BOOTP (d) ARP This question is raises by Chen 凃咨宸.

Chapter 1 There are three members in the struct sockaddr_in. Please fill the corresponding letter. This question is raises by Yuan-Jia Lin 林原甲. struct sockaddr_in{ sa_family_t __________; unsigned short int _________; struct in_addr _________; }; A: sin_familyD: sin_port C: sin_addr E: sock_addr B: sock_family F: sock_port Icebreaking activities(2)

Icebreaking activities(3) Chapter 2 In the server initialization period, which function is not used? (a)socket (b)send (c)bind (d)listen This question is raises by Yao 李宗耀.

Icebreaking activities(4) Chapter 2  True/False question In TCP programming, the data transmission starts at Connection period This question is raises by Ming 周永銘.

Course 2.1 General Issues 2.2 Elementary TCP Socket Functions 2.3 TCP Client/Server Example 2.4 Summary

DEMO chapter 1  凃咨宸 gethostbyaddr()  林原甲 bind() chapter 2  李宗耀 One on One Chat  周永銘 Echo Q&A

Remind  Reschedule 10/30(online course)->11/06 chapter 3,DEMO  張晏誠 許名宏 chapter 4,DEMO  李韋忠 王維寬  The students are responsible for units of chapter three and four and raises a on-line question to all of the participants in the “Icebreaking activities”, and mail the solution to TA. Due 10/23