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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Server supporting mutiple clients(socket programming)

Server supporting mutiple clients(socket programming)

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++sysadmin
4 Posts 3 Posters 1 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.
  • C Offline
    C Offline
    C Mahesh
    wrote on last edited by
    #1

    How do i write a server that supports multiple clients using MFC Socket classes? Thanks

    R S 2 Replies Last reply
    0
    • C C Mahesh

      How do i write a server that supports multiple clients using MFC Socket classes? Thanks

      R Offline
      R Offline
      Roger Stoltz
      wrote on last edited by
      #2

      Have a look at MSDN examples CHATTER and CHATSRVR here[^]. The server accepts connections from multiple clients.


      "It's supposed to be hard, otherwise anybody could do it!" - selfquote
      "High speed never compensates for wrong direction!" - unknown

      C 1 Reply Last reply
      0
      • R Roger Stoltz

        Have a look at MSDN examples CHATTER and CHATSRVR here[^]. The server accepts connections from multiple clients.


        "It's supposed to be hard, otherwise anybody could do it!" - selfquote
        "High speed never compensates for wrong direction!" - unknown

        C Offline
        C Offline
        C Mahesh
        wrote on last edited by
        #3

        Thank You

        1 Reply Last reply
        0
        • C C Mahesh

          How do i write a server that supports multiple clients using MFC Socket classes? Thanks

          S Offline
          S Offline
          Sunil P V
          wrote on last edited by
          #4

          Use the CAsynSocket class which will listen and make a connection to the server from multiple clients one after the other as in a queue i think? else try out this link http://www.codeguru.com/cpp/i-n/network/messaging/article.php/c5453 ;P

          Sunil

          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