GitPS / PiCasino

Java based casino game hosted on a Raspberry Pi.
GNU General Public License v3.0
1 stars 0 forks source link

Networking #5

Closed GitPS closed 10 years ago

GitPS commented 11 years ago

I created this so we can start discussing some networking ideas that may come up in the future.

I'm looking into a networking framework that is for use with Java that works much better than the built-in features. I'm doing a little more research to see if it will work for our needs.

Key aspects of the framework I have found versus the standard Java framework:

* Better throughput, lower latency
* Less resource consumption
* Minimized unnecessary memory copy
ghost commented 11 years ago

What is the framework? There have to be trade offs... is the non-java framework just more difficult to implement?

areis422 commented 11 years ago

Not only that, but is it as simple as including it within our final distribution to have it work or does it have to be preinstalled before hand?

Andrew Reis CompTIA Network+ Microsoft Certified Technology Specialist Cell: (608) 797-1481 Email: reis.andr@uwlax.edu

University of Wisconsin - La Crosse Computer Science 1019 State Street Apt 5 La Crosse, WI 54601

On Fri, Sep 27, 2013 at 9:56 AM, ajjensen13 notifications@github.comwrote:

What is the framework? There have to be trade offs... is the non-java framework just more difficult to implement?

— Reply to this email directly or view it on GitHubhttps://github.com/GitPS/PiCasino/issues/5#issuecomment-25251033 .

GitPS commented 11 years ago

http://netty.io/

It is included in the .jar as any external library would be. There is nothing extra to install on either the server or the client.

is the non-java framework just more difficult to implement?

I don't follow this question? They are both Java. One is just using the included networking functions and one is using the Netty framework to make implementation easier and reduce resource usage. When I say "implementation easier" that isn't to be confused with just creating a connection in Java. That is relatively easy and only a few lines of code. The issue is sending/receiving multiple packets of data from multiple locations and handling those packets. That isn't just a few lines of code and I'm confident it could quickly spiral into a huge project without using a framework.

GitPS commented 10 years ago

Networking framework is implemented for the most part. Closing this.