Page 1 of 1
Client to Client
Posted: Sun Nov 22, 2009 11:11 am
by ukimiku
Do have an idea about how two RunRev stacks could communicate with each other over the internet directly, i.e. without an intermediate server? What protocol would one use, how send messages from one stack to the other over the web?
Thanks
Re: Client to Client
Posted: Sun Nov 22, 2009 4:39 pm
by BvG
This is quite possible. The easiest way is to make up your own protocol using the socket commands (open, accept, read from socket, write to socket), just as I did with chatrev. Note that client to client is a simplification for: every client is a server too. Sockets always have a server, and when both sides _could_ be the server, that is normally when "client to client" is said. Finally "the web" usually means http and html over port 80 (wold wide web), and not the tcp/ip (or udp) network.
I'm sure you'd get more detailed information if you say what your goal is, instead of wether a technology is available to rev.
Re: Client to Client
Posted: Sun Nov 22, 2009 5:34 pm
by ukimiku
Hi BvG,
thanks for your explanations. I'm glad that my goal appears so easy to reach. I would like to add some kind of online tournament capability to a game that is running as a single-"player" standalone only at the moment. Your pointers have provided me with enough information for a start, but if I should happen to run into any obstacles, may I contact you again?
Regards
Re: Client to Client
Posted: Sun Nov 22, 2009 6:17 pm
by BvG
Sure.
Chatrev is always up, and sometimes i even am nat my computer and respond to queries when asked (hint: wait more then a few seconds for answers)
