Skip to content

Muzi12345632/Socket-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Socket-programming

API to establish connection between server and client,

socket.socket() creates a socket object that supports the context manager type, so you can use it in a with statement. There’s no need to call s.close(),

bind() is used to associate the socket with a specific network interface and port number,

listen() enables a server to accept() connections,

the client is pretty simple. It creates a socket object, connects to the server and calls s.sendall() to send its message,

Lastly, it calls s.recv() to read the server’s reply and then prints it.

About

API to establish connection between server and client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages