A simple python library for networking. Not extremely complex, but allows for simple game servers and chat rooms to be hosted.
Project description
netty
A simple python library for networking. Not extremely complex, but allows for simple game servers and chat rooms to be hosted.
Documentation
This example will show you how to make a simple chat room with netty
.
First, import netty:
import netty
Then, choose a port and make a client and a server:
import netty
PORT = 3000
client = netty.connection.Client('', PORT) # args: IP ('' for local), and port.
server = netty.connection.Server(PORT) # args: port to run the server on.
Now, we have a client and a server, but they aren't doing anything when they get a message. To do this, we need to add a onReceive
argument to the client and server.
MORE DOCUMENTATION COMING SOON
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netty-0.1.tar.gz
(5.0 kB
view hashes)