avishekp4 / pyservcha Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pyservcha
Automatically exported from code.google.com/p/pyservcha
Python UDP chatroom server ========================== This is just a toy example of a command-line chatroom, both client and server, implemented using Python. There is only one room, and there is no authentication. The sole purpose of this project was to learn a little about how UDP works, so I'm passing it along for others to use as an example. The server and clients interact in a connectionless way. This means that they use the socket.sendto and socket.recvfrom methods to communicate. In these methods, the destination address and port are specified. The protocol used to communicate from client to server and also from server to client is a simple JSON protocol that looks like this: { "username" : "foo", "message" : "hello, world", "color" : 32 } To run the server: edit conf.py then run python server.py To run the client: python client.py [server ip address] [server port] [username] [color code] The color code specifies what color your text will appear to others in the chat room. The color code follows the ANSI color standard for consoles, e.g. 31=red, 32=yellow, 33=green Have fun!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.