Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  SimpleNet - lightweight Java network library  (Read 4269 times)
0 Members and 1 Guest are viewing this topic.
Offline beni

Senior Newbie

« Posted 2009-07-31 06:44:50 »

Hi, i wanted to drop a note that i just released 0.3 of my java network lib SimpleNet.

It was born while i played with darkstar and googles protobuf and emerged out of the need to have a simple but fast message dispatching functionality. The critical point was, that the messages id should be maintained mostly automatically, leaving the dev (me) just the task to design the messages. However, fiddling around with protobufs extensions was no fun and using the enum feature was too unflexible in my opinion.
This was the reason i wrote my own lib.

It mostly deals with managing the "get ByteBuffer, decode and handle" thing, which is achieved by MessageHandlers that do the real work. Each MessageHandler is responsible for handling one specific message type. There is also a HeaderHandler which deals with message type id-recognition (the basis for the PacketManager to be able to dispatch the incoming messages to the appropriate MessageHandler), but can do several other tasks too (eg. encryption, compressing, whatever you like). Currently there is one default implementation for the HeaderHandler available, but he is rather basic (however should satisfy the most cases already). I have plans to add a plugin interface, so arbitary plugins can be added so extending the header will be an easy task.

I would be glad if you would download and test it, so you can give me tips/bug reports/patches/whatever you like (maybe you will write a review?), while i hope that this lib is useful to some of you.
Also, i hope that the population of the doc/ directory pais off so you get a fast grip.

The project is hosted at Sourceforge: (project home:
Its sourcecode is available at the SF webSVN:
The APIdoc as well as examples and descriptions is part of the distribution file; however most of the docs can be viewed in svn.
The current initial release license is AGPL, but upcoming releases will be put under the LGPL (svn code already is).

Greetings, Beni
Offline beni

Senior Newbie

« Reply #1 - Posted 2009-08-03 09:31:22 »

Just wanted to inform you, that i recently released 0.4 of the lib.

It features some improvements on the wrappedMessage feature, that is now implemented as an interface. Also the package was restructured a bit (merged the "protobuf" package into the "implementations" one).

Again, it would be nice, you could give me some feedback.

Pages: [1]
  ignore  |  Print  

EgonOlsen (79 views)
2018-06-10 19:43:48

EgonOlsen (59 views)
2018-06-10 19:43:44

EgonOlsen (78 views)
2018-06-10 19:43:20

DesertCoockie (261 views)
2018-05-13 18:23:11

nelsongames (160 views)
2018-04-24 18:15:36

nelsongames (158 views)
2018-04-24 18:14:32

ivj94 (901 views)
2018-03-24 14:47:39

ivj94 (162 views)
2018-03-24 14:46:31

ivj94 (813 views)
2018-03-24 14:43:53

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!