Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seeking a High-Level Library for Socket Programming (Java or Python)

In short I'm creating a Flash based multiplayer game and I'm now starting to work on the server-side code. Well I'm the sole developer of the project so I'm seeking a high-level socket library that works well with games to speed up my development time.

I was trying to use the Twisted Framework (for Python) but I'm having some personal issues with it so I'm looking for another solution.

I'm open to either Java or a Python based library. The main thing is that the library is stable enough for multiplayer games and the library needs to be "high-level" (abstract) since I'm new to socket programming for games.

I want to also note that I will be using the raw binary socket for my Flash game (Actionscript 3.0) since I assume it will be faster than the traditional Flash XML socket.

like image 838
CodeJustin.com Avatar asked Nov 13 '09 09:11

CodeJustin.com


1 Answers

An option for Python is the Concurrence framework. I used it fairly recently, in conjunction with Stackless Python, to simulate an environment in which there were potentially thousands of requests per second, each of which had to be processed in less than 2 seconds. The API is very straightforward and is well documented.

I came very close to implementing in Java using Netty, which is a JBoss project.

like image 170
Rod Hyde Avatar answered Sep 27 '22 17:09

Rod Hyde