Sign in to follow this  
BigBeginner

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

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
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this