Operating Systems - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Operating Systems

Description:

Operating Systems Lesson 10 Plan Windows Sockets TCP connection Client/Server Listen vs. Data Socket Flow Messenger sample HW assignment #5: Fortune teller server ... – PowerPoint PPT presentation

Number of Views:58
Avg rating:3.0/5.0
Slides: 9
Provided by: Mark2236
Category:

less

Transcript and Presenter's Notes

Title: Operating Systems


1
Operating Systems
  • Lesson 10

2
Plan
  • Windows Sockets
  • TCP connection
  • Client/Server
  • Listen vs. Data Socket
  • Flow
  • Messenger sample
  • HW assignment 5 Fortune teller server
  • Client/Server description
  • Tips/Challenges

3
Windows Sockets
  • IPC
  • Inter-Process Communication
  • Windows Sockets (WinSock)
  • API/Library/Concept for IPC
  • Allows IPC Across network
  • Over any transport protocol that provides socket
    service interface
  • Most common TCP/UDP

4
TCP Connection
  • IP address identifies host (computer)
  • Port number identifies application
  • Connection between 2 applications is identified
    by 2 IP addresses and 2 port numbers
  • Connection is two connected sockets (one per
    application)

5
Socket Client/Server
  • Server
  • Wait for client to connect
  • Accept a connection
  • Send/Receive bytes
  • Disconnect
  • Client
  • Connect to a server
  • Send/Receive bytes
  • Disconnect

6
Listen vs. Data socket
  • Socket is a concept, represented in software by
    its handle (not Win32 handle)
  • Data and control packets are represented in a
    Server by 2 sockets
  • Listen socket handles connection establishment
  • Data socket handles data receive/send
  • Both socket has same port number
  • Client handles connection and data using the same
    socket

7
(No Transcript)
8
Messenger sample
Write a Comment
User Comments (0)
About PowerShow.com