Python Network Programming #2: Server-Client Connection
37 هزار بار بازدید -
4 سال پیش
-
In this quick 9 minutes
In this quick 9 minutes tutorial you will learn how to create a connection between a server that you create and one or multiple clients.
We need to know first a few things about the server.
First, the server has a bind() method which binds to a specific ip and port so it can listen to incoming requests.
Second, the server has a Listen() method which puts the server into a listen mode which allows the server to listen to
incoming connections.
Last we have accept and close() methods.
accept() : intiates a connection with the client.
close() : closes the connection with the client.
Github link for the code : github.com/BekBrace/network-programming-client-ser…
DEV profile : dev.to/bekbrace
Github profile: github.com/BekBrace
4 سال پیش
در تاریخ 1399/06/30 منتشر شده
است.
37,065
بـار بازدید شده