Skip to content

A small example of how to send a file using socket in python.

Notifications You must be signed in to change notification settings

eliasfank/python-socket-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-socket-example

A small example of how to send a file using socket in python.

description

There is a client who wants to know the total sum of a list of products(similar to a invoice). So, he creates a txt file putting into it the product name, the number of units of each product and the price per unit. After this, he can send that file to the server that calculates the total sum of the price for all products and sends back to the client the result value. Making it clear that the goal of this task is the use of sockets, and not the busines process.

usage

python client.py 127.0.0.1 50005 example.txt

About

A small example of how to send a file using socket in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages