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 / Working with MultiSync

Author
Message
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 25th May 2008 00:58
I have downloaded, unpacked and gotten the MultiSync files into the right places. I think everything is in the right spot. I went to check out the example and low and behold, they are all written in Dark Basic Pro!

Does anyone have a simple code working, using MultiSync? It can be really an easy code, just i need one to figure out what I am actually doing.

Thanks!

~~Its not about what you know, its about how you figure it out.~~
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 25th May 2008 06:43
Here are the main.cpp files for a simple server and client. You should be able to create a 3D game project, and replace the main.cpp with these. You will want to replace the line:
#include "multisync.h"

with this one:
#include <multisync.h>

Server main.cpp


Client main.cpp


That will get you started with client server programming using MultiSync. I used port 23 because that is Telnet. Telnet is a good protocol to use for studying TCP/IP communications.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 25th May 2008 07:11
The .rar file in the Multisync thread comes with both the DBP and GDK versions, look at the contents of the archive before extracting it anywhere :p.

programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 25th May 2008 17:54 Edited at: 25th May 2008 19:05
Thanks jinzai, I will study the code and try and figure out what to do!

Quote: "The .rar file in the Multisync thread comes with both the DBP and GDK versions"


I didn't see any, I only saw dbpro and dba. Both of them I can open, but I can't compile....

I will look again though!

~~Its not about what you know, its about how you figure it out.~~
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 25th May 2008 19:07
One last question, the server ip, 127.0.0.1, is it the same evry time or is it different?

~~Its not about what you know, its about how you figure it out.~~
unitech
17
Years of Service
User Offline
Joined: 27th Jun 2007
Location:
Posted: 28th May 2008 16:04 Edited at: 28th May 2008 16:28
Not sure what your referring to but i will say 127.0.0.1 is the ip of the computer your on. If you and I are both on the same network, that ip would be your ip and mine. It routes to local host (loop back).
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 28th May 2008 16:22
Quote: "One last question, the server ip, 127.0.0.1, is it the same evry time or is it different?"

127.0.0.1 is only for initiating connections within the same machine. You can't listen on that address and expect to accept connections from other machines.

programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 29th May 2008 04:53
Oh, Ok..... Now I think I got it! Thanks

~~Its not about what you know, its about how you figure it out.~~
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 4th Jun 2008 00:44
I cant get multisync to work im not sure ware to place the files.
can anyone guide me

The south will rise again
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 4th Jun 2008 06:22
Extract the .lib and .h file from the '/other languages' dir of the archive to your project dir(next to the .vcproj) and just #include the header and voilĂ ?

Login to post a reply

Server time is: 2024-11-20 11:25:12
Your offset time is: 2024-11-20 11:25:12