Skip to content

dotja/sockets_and_ports

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sockets and Ports

Python code to create a server and a client

Usage

## run the server code
$ python server.py 
Accepted connection from: ('127.0.0.1', 61811)
This is what the client sent: hi
This is what the client sent: how are you
This is what the client sent: ok bye


## run the client in another session and interact with the server
$ python client.py 
->hi
->how are you
->ok bye

About

A server and a client in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages