General java server / client tutorial

im developing a multi-player card game in which clients must communicate with each other or with a common server. I have never done this before, so I need some guidance or tutorial on how to achieve this.

so far I have created a local version for one person ...

+3
source share
3 answers

Sun has a good tutorial on writing a client / server pair complete with sample code.

+5
source

So far I have created a local version for one person ...

, ( "" )

RMI, . , .

RMI , (.. ).

+1

RMI . RMI , , Remote, RemoteExceptions .. , , RMI, , rmiregistry .

If you are a beginner, start with simple sockets first. They are easier to understand, but somewhat longer to encode. RMI is easier to code, but somewhat difficult to understand.

For sockets:

TCP Sockets

UDP and datagrams

For RMI:

A simple tutorial for RMI - really helped me get started

0
source

Source: https://habr.com/ru/post/1727553/


All Articles