It is currently 28 Feb 2020, 02:20
   
Text Size

Need info about client-server communication

by BetaSteward

Moderators: TheElk801, BetaSteward, LevelX, North, noxx, JayDi, jeffwadsworth, CCGHQ Admins

Need info about client-server communication

Postby Fedora » 03 Feb 2020, 22:36

Hello there!
I'm trying to develop a client for the Xmage server (because I want to test some things and I need a MTG Engine).
I've been reading the Wiki on Github and reading some of the code, but I couldn't find much documentation about how the client and the server communicates.

So far I have seen in Mage/src/main/java/mage/constants/PlayerAction.java there is an enum for events, and in Mage. Common/src/main/java/mage/remote/SessionImpl.java there is the code used to open a session via Sockets (and an option for HTTP, I believe?)

I would appreciate if someone pointed me at some documentation about this, or gave me an idea about where to start looking at to try to comprehend this. I'm not a Java programmer nor an native english speaker, so pardon me in advance.

Thanks! :)
Fedora
 
Posts: 1
Joined: 03 Feb 2020, 22:22
Has thanked: 0 time
Been thanked: 0 time

Re: Need info about client-server communication

Postby JayDi » 09 Feb 2020, 11:39

Xmage uses jboss remoting library (version 2). It's socket communication with binary objects transfer (java binary serialization). Search github issues by "graphql" for more related topics and links.
User avatar
JayDi
 
Posts: 261
Joined: 23 Nov 2017, 15:41
Location: Russia
Has thanked: 0 time
Been thanked: 35 times


Return to XMage

Who is online

Users browsing this forum: No registered users and 13 guests


Who is online

In total there are 13 users online :: 0 registered, 0 hidden and 13 guests (based on users active over the past 10 minutes)
Most users ever online was 1371 on 09 Feb 2020, 16:22

Users browsing this forum: No registered users and 13 guests

Login Form