Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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  
  Where to start?  (Read 2410 times)
0 Members and 1 Guest are viewing this topic.
Offline LegoBoy

JGO Visitor




« Posted 2005-12-15 23:27:50 »

I've been programming with java for a while now, and I'm wondering where to get started with networking? Anyone have a well documented simple networking example?
Offline GameDev101

Senior Newbie





« Reply #1 - Posted 2005-12-16 16:14:50 »

Im not that experienced with networking in java (as most of these forum members could tell you) im currently "attempting" to program a server to run a simple mmo off of... yeah, not turning out so well lol. But I know there some pretty good tutorials out there on using ServerSockets, which is what i have been using up to now... ill try to find one and repost later
Offline stodge

Junior Newbie





« Reply #2 - Posted 2005-12-16 18:00:52 »

I don't know about Java, but for learning basic socket handling, search Google for Beej's tutorials.
Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline cylab

JGO Knight


Medals: 30



« Reply #3 - Posted 2005-12-16 18:05:47 »

There is a somewhat "official" tutorial on this:
http://java.sun.com/docs/books/tutorial/networking/sockets/

or you could use some kind of library like
http://directory.apache.org/subprojects/network/index.html

I have not used mina, but it seems quite complete and has some documentation...

Mathias - I Know What [you] Did Last Summer!
Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2005-12-16 20:34:23 »

The best way to learn anything is by doing Cool

I'd pick a simple project, like maybe a small group LAN game.

On that level you won't need the NIO socket sutff, which is more flexible but trickier, you can use the java.net.* socket stuff which is much easier to learn!  You also wont be delaing with things like Internet latencies or analog connections, at least to start with.


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (78 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (179 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.069 seconds with 20 queries.