Skip to content

Use python socket to create to create a TCP/IP server and client to send text, json, and any struct of python using pickle

Notifications You must be signed in to change notification settings

AlanIsaacV/python-sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Sockets TCP

How does it work

Implementation of python sockets to communicate a server with multiples clients.

The server implement multi-theading for manament each message for the clients.

Each request send two parts, the header and the message (The message can be anything, it can be any object of python or a json). The Header is declared indicate the HEADERSIZE

Prerequisite

To validate the functionality you only need to have installed Docker and docker-compose

Run

If you want to validate that the module works, you just have to run docker-compose up this create two images and run it.

Images

client Send a test.json to server using the socket and recives a message if json was recive successfully

Server This run the socket server it recives the message from the client (A json file) and save it, if json file is saved successfully send message to recived to the client

About

Use python socket to create to create a TCP/IP server and client to send text, json, and any struct of python using pickle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published