Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (734)
Games in Android Showcase (222)
games submitted by our members
Games in WIP (811)
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  
  Online networking question(s)  (Read 1566 times)
0 Members and 1 Guest are viewing this topic.
Offline StarKaster

Innocent Bystander





« Posted 2017-06-05 13:57:50 »

Hi everyone.... I'll be honest here, I haven't delved too deep into any one of the articles provided here and I am almost sure that somewhere deep down in JGO lies the answers I seek, but I am far too pressed for time to spend a week searching for something that may or may not answer my simple question.

With that aside, onto the question! I've recently been wondering how the online gaming industry actually works, more specifically what gets used to communicate between client and server. I see everywhere there is talk of UDP and TCP, and that may very well be the solution, however in all instances that I read of they all talk about using that for LAN, or a simple messaging app demo'd on the local network. Not an online community.

I've also been wondering if web services, like SOAP, WSDL, JSON and the like is even viable? Bearing in mind that the game I'm aiming this at is an RPG style game where latency is a necessity, but not so much as it would be in an FPS. So I would like to know how an online game does it, the client sends data to the server for processing and the server sends data to the client for rendering the results, but what is used to do the actual sending of data.

The 4 ways that I know of are UDP, TCP, Kryonet and web services. However I unfortunately don't have much time to do investigation myself, which saddens me to extreme extents but at this stage there isn't much I can do about it. Many thanks for the help, and sorry for a long post :/ I sometimes cant help myself over explain.
Offline jonjava
« Reply #1 - Posted 2017-06-05 14:13:52 »

You're mixing layers https://en.wikipedia.org/wiki/OSI_model

Generally TCP and UDP are used. Depends on the game. Most likely there's already some kind of API that does most of the heavy lifting for you so you don't have to deal with the Transport layer yourself too much.

I suggest you stick to TCP unless there's a specific reason why you would need UDP.

TCP and UDP in itself are quite low level -- there's so much more to net code in games.

eg: https://www.youtube.com/watch?v=vTH2ZPgYujQ

Pages: [1]
  ignore  |  Print  
 
 

 
cybrmynd (44 views)
2017-08-02 12:28:51

cybrmynd (59 views)
2017-08-02 12:19:43

cybrmynd (67 views)
2017-08-02 12:18:09

Sralse (82 views)
2017-07-25 17:13:48

Archive (504 views)
2017-04-27 17:45:51

buddyBro (652 views)
2017-04-05 03:38:00

CopyableCougar4 (1143 views)
2017-03-24 15:39:42

theagentd (1144 views)
2017-03-24 15:32:08

Rule (1117 views)
2017-03-19 12:43:22

Rule (1093 views)
2017-03-19 12:42:17
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!