Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Networking Concepts - Not sure where to post...

Networking Concepts - Not sure where to post...

Scheduled Pinned Locked Moved C#
graphicsgame-devsysadminhelpwcf
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Expert Coming
    wrote on last edited by
    #1

    I have never really dealt with network packets, and am writing a fun program to really dive into them. I am making an RPG Game using DirectX for graphics, input, and sound. So far so good. I have the game engine started and think all is ok there. I now want to start the client/server side of the programming. The problem is I don't know how to have the client and server actually talk. Do I use SOAP and send object, I could use TCP packets... Which can handle more concurrent connections? It is to be a MMORPG... So, if I use one technology over another, still how to I determine what action they are taking(walking, talking, attacking... ect.) Basically, what technology should I look into, and can you explain why and very basically how they work. Keep in mind I am not asking for code but for advice. Code samples would be cool though. If you know any articles, send them my way as well. Thanks for any help!

    The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

    R 1 Reply Last reply
    0
    • E Expert Coming

      I have never really dealt with network packets, and am writing a fun program to really dive into them. I am making an RPG Game using DirectX for graphics, input, and sound. So far so good. I have the game engine started and think all is ok there. I now want to start the client/server side of the programming. The problem is I don't know how to have the client and server actually talk. Do I use SOAP and send object, I could use TCP packets... Which can handle more concurrent connections? It is to be a MMORPG... So, if I use one technology over another, still how to I determine what action they are taking(walking, talking, attacking... ect.) Basically, what technology should I look into, and can you explain why and very basically how they work. Keep in mind I am not asking for code but for advice. Code samples would be cool though. If you know any articles, send them my way as well. Thanks for any help!

      The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      I strongly encourage you to use WCF to implement the client/server bits of your app. It's easy to use, robust and very flexible. See this[^] CP section and this[^] MSDN tutorial. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      E 1 Reply Last reply
      0
      • R Ravi Bhavnani

        I strongly encourage you to use WCF to implement the client/server bits of your app. It's easy to use, robust and very flexible. See this[^] CP section and this[^] MSDN tutorial. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        E Offline
        E Offline
        Expert Coming
        wrote on last edited by
        #3

        I skimmed over it and I still don't see how I determine what they are trying to do(walk, talk, attack ect...) Have you used this before, and what for?

        The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

        R 1 Reply Last reply
        0
        • E Expert Coming

          I skimmed over it and I still don't see how I determine what they are trying to do(walk, talk, attack ect...) Have you used this before, and what for?

          The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          You can use WCF to easily implement a solution for any of these scenarios:

          • Client (player) polls server when it needs to update its state of the world.
          • Client (player) informs server when it performs an action (move, fire, etc.)
          • Server broadcasts events to clients when the state of the universe changes.

          I suspect you may want to use the 2nd and 3rd options, although you could use any combination. Btw, WCF is very efficient in handling multiple client sessions. I currently use WCF at work. /ravi

          My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

          E 1 Reply Last reply
          0
          • R Ravi Bhavnani

            You can use WCF to easily implement a solution for any of these scenarios:

            • Client (player) polls server when it needs to update its state of the world.
            • Client (player) informs server when it performs an action (move, fire, etc.)
            • Server broadcasts events to clients when the state of the universe changes.

            I suspect you may want to use the 2nd and 3rd options, although you could use any combination. Btw, WCF is very efficient in handling multiple client sessions. I currently use WCF at work. /ravi

            My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

            E Offline
            E Offline
            Expert Coming
            wrote on last edited by
            #5

            Ok, I will look into. Thanks for the help. Would it be ok if I contacted you at your email address on your signature if I have any problems?

            The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

            R 1 Reply Last reply
            0
            • E Expert Coming

              Ok, I will look into. Thanks for the help. Would it be ok if I contacted you at your email address on your signature if I have any problems?

              The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo

              R Offline
              R Offline
              Ravi Bhavnani
              wrote on last edited by
              #6

              Feel free to send me email, although I can't guarantee a swift response. :) You're better off posting in this forum or in microsoft.public.dotnet.framework. /ravi

              My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups