Need some help by programming of online game

vbBart

Member
Joined
Feb 27, 2008
Messages
16
Programming Experience
1-3
Hello,

I want to make an online game with VB.NET. Is there a beter option inplace of VB.NET?

How can I do it in VB.NET? I want a server-client game. So users must login on the server and receive al user data. How can I secure the connection and how many connection can VB.NET handle at the same time? And how long will the user stay connected?

Gr. Bart
 
well, you can decide if it can be handled with vb.net or not. Not all games can be implemented (or not the better option) with vb.net

good luck
 
What do you think witch language is the best option for making an online multiplayer game? .Net is intergrated on each Windows computer but it cost lots of memory, it's easy to design you're program. Who can give me some advice for the best language?
 
well a lot of online games (not heavy graphics) are created in java
You misunderstand the question, this is a Sockets request, not webpage game which is typically Java/Flash. Multiplayer games that runs at client use sockets to communicate with a public available server. (like World of Warcraft etc)
How can I do it in VB.NET? I want a server-client game. So users must login on the server and receive al user data.
Look up tutorials and samples about TcpClient and TcpListener classes from System.Net.Sockets namespace, there is documentation too! ;)
How can I secure the connection
You can for example wrap communication stream with a SslStream, of System.Net.Security namespace.
and how many connection can VB.NET handle at the same time?
As many as the OS will accept socket connections, many.
And how long will the user stay connected?
You design your own architecture, choosing between connected/disconnected. So client may connect and stay connected, or just make connect/disconnect polling requests.
 
Thanks for the reply johnH. I have search on Google many times for TCP clients and server but it dont work. Do you have some good tutorials?
 
My best advice is to read all the documentation and try out the code samples there. As for internet tutorials just look around, I've never seen sample code that didn't work personally. "TCP clients and server" is a very general term that probably doesn't get you in the right direction, "TcpClient" and "TcpListener" are specific class names that is much easier to find relevant material for. Combine with "vb.net" / "tutorial" and other keywords you see fit.
 
"When a client connects to our server, we use the AcceptTcpClient method to accept the pending request which returns a TcpClient object to us. You could use the AcceptSocket method which gives you greater flexibility, returning a Socket object, but we wanted to use the TcpClient object."

What is the difference between AcceptTcpClient and AcceptSocket?

I've found this on www.codeproject.com. (http://www.codeproject.com/KB/IP/VBTcpClientIPAddress.aspx)
 
Use TcpClient if you don't have special needs, you'll know enough to decide if that happens.
 
Back
Top