8000 GitHub - Geocld/etp: A minimal and easy TCP server for you.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Geocld/etp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etp

A minimal and easy TCP server for you.

Installation

  1. Clone the repository : git clone https://github.com/Geocld/etp.git
  2. Install the package: python setup.py install

Usage

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?

Example

Examples can be found in the /examples folder.

About

A minimal and easy TCP server for you.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0