YSU Network Project2

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Sep 21 4:27
Editor
Edited
Edited
2023 Nov 5 5:7
Refs
Refs
 
ctrl c 로 keyboard interrupt가 될 때 Close the sockets (We will check this by netstat)
notion image
The order is as below
  • Server: host address, producer port number, consumer port number
  • Consumer: host address, port number
  • Producer: host address, port number
 
producer은 하나의 connection만 존재한다고 가정
consumer의 종료 순서는 따로 없고 어떤 순서로 종료해도 잘 작동해야
 
INADDR_ANY
consumer -> producer -> server 순서로 종료되는 경우만
  • __init__
  • start(self)
  • producer_worker(self)
 
 
What does it mean to bind() a socket to any address other than localhost?
I don't understand what it means to bind a socket to any address other than 127.0.0.1 (or ::1, etc.). Am I not -- by definition -- binding the socket to a port on my own machine.. which is localhost?
What does it mean to bind() a socket to any address other than localhost?
 
 

Recommendations