Skip to main content

Simple socket server and client creator

Project description

Simple socket server and client creator.

Only UDP support for now. Example code: Server: from twincharm.server.udp import Server server=Server((‘127.0.0.1’,8391))#make new server listening on port 8391 @server.function def hello(request,addr): return b’Hello world’#if request is ‘hello’ return response ‘Hello world’ server.run() Client: from twincharm.client.udp import Client client=Client()#create new client object client.pair((‘127.0.0.1’,8391))#pair with server client.hello()#should return b’Hello world’

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twincharm-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page