Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
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 2643 times)
0 Members and 1 Guest are viewing this topic.
Offline Markus_Persson

JGO Wizard

Medals: 18
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 or something.
(I'd probably need some help with that)

Play Minecraft!
Offline sugarshark

Junior Devvie

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.


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: 18
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 Devvie

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".

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

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

JGO Wizard

Medals: 18
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.

KaiHH (4 views)
2015-10-06 20:22:20

KaiHH (10 views)
2015-10-06 19:41:59

BurntPizza (16 views)
2015-10-06 19:04:48

basil_ (44 views)
2015-09-30 17:04:40

shadowstryker (22 views)
2015-09-29 15:55:06

TheSpaceHedgehog (28 views)
2015-09-29 01:58:48

GamerC4 (53 views)
2015-09-24 21:10:38

GamerC4 (71 views)
2015-09-24 21:09:48

htuy (28 views)
2015-09-24 04:57:24

htuy (38 views)
2015-09-24 04:56:35
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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!