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 / Networking question (nothing to specific)

Author
Message
Lich120
19
Years of Service
User Offline
Joined: 19th Mar 2006
Location:
Posted: 23rd Sep 2006 07:00
I have never done any DB network coding so Im trying to get a feel for how it works. In the past I've used Direct Play but even that seems to have to much overhead. Anyway, onto the question.

The commands for setting up a client/server environment are quite straight forward, but Im curious is it possible to run a server that is not the same executable as the client. Im not sure how it will handle this as one way of managing connections (such is the case with Direct Play) is with a GUID to make sure the attempted connection goes to the right program, but this doesn't seem to be how DB handles connections.

There is probably a simple answer, I just haven't been able to find a good reference for how Network connections are handled in DB.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 3rd Oct 2006 07:04
Certainly, you can use different code on servers and clients. In the client/server schema, the client makes requests via ports, and the server responds via another port. This is handled in the network code of the respective machines. That is how TCP/IP and UDP work. Remember that networks function in layers, so it is possible to communicate with many programs, not simply app to app. This is also how you can get many players in a game.

GUIDs are how Microsoft OSs manage components. Their use in network code is related to DirectPlay/DirectX more than the networking paradigm at work. Network code is either a proprietary protocol, or an established one like the TCP/IP family of network protocols. That is the one that you should study, especially UDP.

...and no, the answer in this case is complicated, I'm afraid.
Lich120
19
Years of Service
User Offline
Joined: 19th Mar 2006
Location:
Posted: 3rd Oct 2006 07:54
Thanks jin for your input. I was afraid something might have been lost in the encapsulation of the direct play code that caused DB's networking scheme to be app specific. Luckily as you say, this is not the case =). Again thanks for the insight, and hopefully Ill be able to use the DB networking functions without having to know the nitty gritty details of how it does what it does. That does seem to be the beauty of DB after all.

Login to post a reply

Server time is: 2025-06-24 02:56:17
Your offset time is: 2025-06-24 02:56:17