Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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 2629 times)
0 Members and 1 Guest are viewing this topic.
Offline LegoBoy

Innocent Bystander





« Posted 2005-12-15 22: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 15: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 17: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!
Legends of Yore - The Casual Retro Roguelike
Offline cylab

JGO Ninja


Medals: 55



« Reply #3 - Posted 2005-12-16 17: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 19: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.

 

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

The first screenshot will be displayed as a thumbnail.

xFryIx (52 views)
2014-11-13 12:34:49

digdugdiggy (34 views)
2014-11-12 21:11:50

digdugdiggy (29 views)
2014-11-12 21:10:15

digdugdiggy (23 views)
2014-11-12 21:09:33

kovacsa (46 views)
2014-11-07 19:57:14

TehJavaDev (50 views)
2014-11-03 22:04:50

BurntPizza (49 views)
2014-11-03 18:54:52

moogie (65 views)
2014-11-03 06:22:04

CopyableCougar4 (63 views)
2014-11-01 23:36:41

DarkCart (148 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!