• Welcome to Valhalla Legends Archive.
 

BnetD

Started by WiLD, January 10, 2004, 10:23 PM

Previous topic - Next topic

WiLD

Im sorry if i have posted this in the incorrect forum but id refer to this as programming.

I was wondering if there has ever been a bnetd server application written in VB, if not is it possible? I would like to have alook at an example if there is one because i want to start a simple chat server for starcraft. If you have any information in regrads to this could you please post, id be very greatful.
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

UserLoser.

It's possible - i've done it for everything but CHAT, JSTR, WAR3/W3XP

WiLD

Would you care to explain a little how it is done. I never done any server codes besides telnet and chat. I would really like to learn but dont know how to start off.
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

Mesiah / haiseM

I posted the source to my simple binary server class using an ocx my friend made, you could use that as a start on how binary servers work, to get you started and whatever... But since I reformatted, I lost that source.. maybe somebody else has it? lol
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Tuberload

Quote from: WiLD on January 10, 2004, 10:44 PM
Would you care to explain a little how it is done. I never done any server codes besides telnet and chat. I would really like to learn but dont know how to start off.
I am assuming you know how to make a basic server based off of your reply. To create a Battle.net Daemon is not really too complicated. You need to come up with a way to monitor the channels available, and the people connected. You could for example create User object that stores a reference to the socket, the channel the user is in, and other needed information. Now when that user talks you determine what channel he is in and only send it to other users in the same channel. This of course only handles basic chat events, but everything else would be done in a similar fashion. I like to use collections for this sort of thing, but some prefer arrays. When people are connecting to the server just simulate battle.net using triggers or something. There is not one way to do it; you just need to know how to use the tools the project requires.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

Mesiah / haiseM

#5
Hey, if your going to do this, and have a very stable connection, id like to help. I could make a battle.net type server any day, but i personally have no use for it, but i always wanted to make a server that communicates with another specified battle.net server, so you could control everything you wanted, while still making it seem like your on the real battle.net server, being able to chat with your same friends and such, now that would be fun :)

Edit:

Example: Bnet Server->VB Server->Client, Client->VB Server->Bnet Server
]HighBrow Innovations
Coming soon...

AIM Online Status: