Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (483)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
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  
  RMI over UDP. Should I clean up and post?  (Read 2238 times)
0 Members and 1 Guest are viewing this topic.
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Posted 2003-07-14 00:51:27 »

I've been poking at an "RMI" over UDP package that lets you reasonably reliably call methods remotely to on a server, and for the server to call back to all connected users.
The methods are called in the right order, and each method call with either be performed, or the connection will time out.

It's still kinda crude, but it seems to work well enough.

Current issues:

* It's not thread safe at all, and it requires that you call an update() fairly often. This method cannot be called while a remote call is being made.
* There's no real flow control, so if you send more data than the receiving end can handle, it'll time out and die without really explaining why.
* It uses java.lang.reflect for the method calls. Precompiled stubs will be added later on.
* Even if no methods are called, the client and server will keep acking eachother's acks until the connection is manually stopped, or until the connection fails. I'll add support for marking packets that only contain acks later on to prevent this.
* Return values are not supported. This IS UDP, after all.  Wink


I'm not sure if this is useful to anyone, but I figured it would be nice to give something back to the java community.
So if you want it, just let me know, and I'll look into setting up a project dev.java.net or something.
(I'd probably need some help with that)

Play Minecraft!
Offline sugarshark

Junior Member




Sugar to the sharks.


« Reply #1 - Posted 2003-07-15 09:44:49 »

Yes please. I'm interested and would like to see how you did it.

Ole.

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #2 - Posted 2003-07-15 14:01:50 »

Cool. Smiley

I've applied for a project, and started cleaning up the code. I'll let you know when it's up.

Play Minecraft!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DavidYazel

Junior Member




Java games rock!


« Reply #3 - Posted 2003-07-15 14:51:21 »

The magicosm project has a spin-off open source project called ARMI.  Fast, compact, asynchronous Java messaging system.  Alternative to Java RMI. Pronounced "army".

http://sourceforge.net/projects/armi/

We use it for the client-server communications and could be useful to some people.

Feel free to take a look.  It is a mature and stable product

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline Markus_Persson

JGO Wizard


Medals: 14
Projects: 19


Mojang Specifications


« Reply #4 - Posted 2003-07-15 15:52:54 »

Grr. How come I never find stuff like that on Sorceforge when I scout before starting to implement? I blame the clunky search engine. Wink


Ah, well, at least I learned some more about network programming. Grin

ARMI would probably be a better choice for most people, yes.

Play Minecraft!
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.

CopyableCougar4 (17 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (38 views)
2014-08-06 19:49:38
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!