Client to Client

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Client to Client

Post by ukimiku » Sun Nov 22, 2009 11:11 am

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Client to Client

Post by BvG » Sun Nov 22, 2009 4:39 pm

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.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

ukimiku
Posts: 101
Joined: Thu Oct 22, 2009 10:45 am

Re: Client to Client

Post by ukimiku » Sun Nov 22, 2009 5:34 pm

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

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Client to Client

Post by BvG » Sun Nov 22, 2009 6:17 pm

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) ;)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply