Jump to content
  • Advertisement
Sign in to follow this  
BigBeginner

DirectPlay, enumsessions, dialog-window, and one machine is both server-client

This topic is 4698 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I have 2 question. First: I use DirectPlay to use network programming. You know, the DirectPlay::enumconnections function give an list about the created servers on local network (LAN), right? Well, I call the function: Desc.Size = SizeOf(Desc); Desc.guidApplication = MYGUID; EnumSessions(Desc, 0, LPEnumSCallback, NULL, DPENUMSESSIONS_ASYNC or DPENUMSESSIONS_AVAILABLE); The one thing is: after calling this function, an dialog window appearing. How to disappear that? Its funny in an serious game. And the second: I have one machine, so can I make servers/cliens without network? For example I start my server-program two times, and the clients programs should to list the 2 server-names - is it possible? Or have to I use real network more than one machine?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by BigBeginner

And the second: I have one machine, so can I make servers/cliens without network? For example I start my server-program two times, and the clients programs should to list the 2 server-names - is it possible? Or have to I use real network more than one machine?



I use DirectPlay in a different Language (Blitz3d), but for your 2nd question, it would be useless to make a server/client program just for one computer, but it can be done. If you actually want people to actually connect to your application, it best to make a server application for your machine, and make a client enabled application for clients connecting to your application.

Share this post


Link to post
Share on other sites
What is the dialog that appears, and you want to disappear? Is it the Windows XP SP2 firewall dialog? If so, it can be made to go away by using the firewall control API. I seem to recall that http-get has code to do this.

Share this post


Link to post
Share on other sites
No, it's an DirectPlay dialog - it would be spare to take an screenshoot (all of it's text is hungarian). An internal dialog window appears at MODEM connection, IPX connection... so its surery directplay dialog.

Share this post


Link to post
Share on other sites
That sounds like DirectPlay version ... 2? 3? It's fairly old.

First of all, you should know that Microsoft has put DirectPlay in sunset mode; it is no longer being recommended for new development, and bug fix/update support will end at some point. Thus, you might want to use something like ReplicaNet, RakNet, or other libraries suggested in the Forum FAQ instead.

Second, I suggest looking at the DirectPlay 8 samples; they go through all the things you'd want to use for a game browser. You'll need to get an older SDK to get these samples, as the newer SDK versions don't include it anymore.

You might want to start here.

Share this post


Link to post
Share on other sites
Umm... I use DirectPlay7 SDK, but it contains DirectPlay4 interface. I downloaded a newer SDK, DirectPlay8, but it doesnt contain DirectPlay interface, just DirectPlay8Server, DirectPlay8Client and so on.

Share this post


Link to post
Share on other sites
Hm... ok, I have to start the directdraw learning again... :( and translate those links, that you gave... By the way, I dont think there is a problem with DirectPlay4 except that dialog window... screw it

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!