Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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 3930 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

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.


Pages: [1]
  ignore  |  Print  

ivj94 (582 views)
2018-03-24 14:47:39

ivj94 (46 views)
2018-03-24 14:46:31

ivj94 (374 views)
2018-03-24 14:43:53

Solater (61 views)
2018-03-17 05:04:08

nelsongames (108 views)
2018-03-05 17:56:34

Gornova (150 views)
2018-03-02 22:15:33

buddyBro (691 views)
2018-02-28 16:59:18

buddyBro (91 views)
2018-02-28 16:45:17

xxMrPHDxx (493 views)
2017-12-31 17:17:51

xxMrPHDxx (730 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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 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!