A minimal and easy TCP server for you.
- Clone the repository :
git clone https://github.com/Geocld/etp.git
- Install the package:
python setup.py install
server:(run the server and listen client send data)
from etp.application import Stp
stp = Stp()
stp.run()
client:(send data to server)
from etp.application import Stp
stp = Stp(socket_type='client')
while True:
cmd = raw_input("Please input msg:")
stp.send(cmd)
Very very simple,is it?
Examples can be found in the /examples
folder.