7 Replies - 16493 Views - Last Post: 25 February 2009 - 07:46 PM Rate Topic: -----

#1 rokan37  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-February 09

How to Create Game Server

Post icon  Posted 22 February 2009 - 01:18 AM

I m a beginner in Gaming Programming.. I have to create a game server using c#. The main role of the Game server will be match maker..

But i cant understand how to start as i m beginner in Gaming program. Can anybody help me with a sample program... It will help me a lot..
Thaking advance

Rokan
Is This A Good Question/Topic? 0
  • +

Replies To: How to Create Game Server

#2 chuck981996  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 119
  • Joined: 03-July 08

Re: How to Create Game Server

Posted 22 February 2009 - 04:25 AM

Well, Dream.In.Code has a policy which we'd like to see some effort on your behalf before providing code. But I will still try and help you.

1.Have you ever programmed before?
a.If yes continue.
b.If no but for school, continue.
c.If no then this may be to advanced for you.

2. Have you made the client yet?
3. What OS are you using?
4. If Windows is the answer to the last question, have you had any previous experience with Winsock programming?

Answer the questions and I will help further.
Was This Post Helpful? 0
  • +
  • -

#3 rokan37  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-February 09

Re: How to Create Game Server

Posted 22 February 2009 - 11:57 PM

View Postchuck981996, on 22 Feb, 2009 - 03:25 AM, said:

Well, Dream.In.Code has a policy which we'd like to see some effort on your behalf before providing code. But I will still try and help you.

1.Have you ever programmed before?
a.If yes continue.
b.If no but for school, continue.
c.If no then this may be to advanced for you.

2. Have you made the client yet?
3. What OS are you using?
4. If Windows is the answer to the last question, have you had any previous experience with Winsock programming?

Answer the questions and I will help further.


Answer of the questions are as follows

1. Actually i m a Web Developer...
2. No yet now i dont make any client application
3. I m using Windows
4. No i dont have any knowledge about WinSock

Sir i need the help deadly...

Looking Forward

Rokan
Was This Post Helpful? 0
  • +
  • -

#4 chuck981996  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 119
  • Joined: 03-July 08

Re: How to Create Game Server

Posted 23 February 2009 - 03:27 AM

I suggest you first read up on these tutorials:

Programming TCP Sockets in C++ for begginer

Beginning Winsock programming - Simple TCP Server

I suggest the way you make your program is by having the server scanning for clients. A client then sends it's IP address to the server and the server sends back the IP of another client (And vice versa). Then the two clients with each others IP's can connect to each other.

That is a simple match-making server with little work for the server to avoid draining internet.

Note 1: The client can send more than just IP.
Note 2: Choose an unused port like 11982, something random to avoid traffic (Within Reason).

Was This Post Helpful? 0
  • +
  • -

#5 WolfCoder  Icon User is offline

  • Isn't a volcano just an angry hill?
  • member icon


Reputation: 783
  • View blog
  • Posts: 7,610
  • Joined: 05-May 05

Re: How to Create Game Server

Posted 24 February 2009 - 07:44 AM

Is there any open platform libraries for socks like how OpenGL is open platform for graphics?
Was This Post Helpful? 0
  • +
  • -

#6 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: How to Create Game Server

Posted 24 February 2009 - 09:18 PM

View PostWolfCoder, on 24 Feb, 2009 - 09:44 AM, said:

Is there any open platform libraries for socks like how OpenGL is open platform for graphics?

There's EzSocket.

It's also pretty easy to write your own wrapper for Win32/Unix sockets (for example, mine). Doesn't take much more than a few #ifdefs.
Was This Post Helpful? 0
  • +
  • -

#7 chuck981996  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 119
  • Joined: 03-July 08

Re: How to Create Game Server

Posted 25 February 2009 - 03:59 AM

What kind of game is it?
Was This Post Helpful? 0
  • +
  • -

#8 KuroTsuto  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 42
  • View blog
  • Posts: 182
  • Joined: 13-February 09

Re: How to Create Game Server

Posted 25 February 2009 - 07:46 PM

Quote

I have to create a game server using c#. The main role of the Game server will be match maker.


Why must the server be written in C#??

If you need some server-side app to manage matchmaking, I actually recommend PHP, as you are a web-dev. For one of my own projects, I have something similar to a match-server written entirely on PHP that is executed at the command-line, so it just runs in the background and listens for new match messages or match-list requests on a certain port via the sockets extension. In this manner, you eliminate the need for a heavy language in favor of a simple script in a language I would imagine you're fairly familiar with.

Of course, if the server need to do more than make matches or throw stats into a database or some such, then a heavier language is undoubtedly ideal.
Was This Post Helpful? 1

Page 1 of 1