Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Multisync - send message from client to host

Author
Message
Gammer_
15
Years of Service
User Offline
Joined: 23rd Nov 2008
Location:
Posted: 19th Dec 2008 22:25
Hi, I,m playing around a bit with multisync, and I am having some trouble with sending a message from the client to the host. From the host to the client works fine, but from client back to host isn't working.

Here is my client code:



and here is the server code:



What happens when I run the program is the host gets stuck in the loop because it doesn't receive anything (that's what I think).

Thanks in advance .
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 20th Dec 2008 05:15
You'll need to call LoopGDK() in that loop, as it's required to do window message processing, which Multisync uses.

Gammer_
15
Years of Service
User Offline
Joined: 23rd Nov 2008
Location:
Posted: 20th Dec 2008 17:34
Hmm, what do you exactly mean? Because that code is in the the main loop (loop gdk) already. So should I use an 'if' statement instead? Because I use the same when the host sends a packet to the client and that works just fine.. (then the client uses the loop).

Login to post a reply

Server time is: 2024-09-30 13:16:03
Your offset time is: 2024-09-30 13:16:03