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. Connection points for Chat server using ATL/COM

Connection points for Chat server using ATL/COM

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearningcomsysadmin
6 Posts 3 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.
  • R Offline
    R Offline
    Raj Prathap
    wrote on last edited by
    #1

    Hi, I've posted the same question in ATL/WTL section also, but did not get any response.. posting again. I'm planning to implement a chat server + a chat client as a learning exercise for my ATL/COM/DCOM. As part of that first I would implement a chat server which is a local server and a chat client. Please suggest if the following is possible, if true how. Clients register their callbacks by using Advice() (Of course, I would do FindConnectionPoint(), before that ). My doubt is is there any way to send the notification from the server to all the clients? and also can the server select the client to which it has to send the notification. For Example: User1, User2 are currently logged in. If user1 sends a message to User2 by using SendMsg(from, to, msg) of IChatServer, can the server alert client of User2. Otherwise can server broadcast the event?? Thanks and regards, Raja Pratap

    L 1 Reply Last reply
    0
    • R Raj Prathap

      Hi, I've posted the same question in ATL/WTL section also, but did not get any response.. posting again. I'm planning to implement a chat server + a chat client as a learning exercise for my ATL/COM/DCOM. As part of that first I would implement a chat server which is a local server and a chat client. Please suggest if the following is possible, if true how. Clients register their callbacks by using Advice() (Of course, I would do FindConnectionPoint(), before that ). My doubt is is there any way to send the notification from the server to all the clients? and also can the server select the client to which it has to send the notification. For Example: User1, User2 are currently logged in. If user1 sends a message to User2 by using SendMsg(from, to, msg) of IChatServer, can the server alert client of User2. Otherwise can server broadcast the event?? Thanks and regards, Raja Pratap

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Raj Prathap wrote:

      I've posted the same question in ATL/WTL section also, but did not get any response

      Well if you are asking about using DCOM for remote communications maybe you should try the "COM" forum?

      M 1 Reply Last reply
      0
      • L led mike

        Raj Prathap wrote:

        I've posted the same question in ATL/WTL section also, but did not get any response

        Well if you are asking about using DCOM for remote communications maybe you should try the "COM" forum?

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        LTNS led mike! :)

        "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

        L 2 Replies Last reply
        0
        • M Mark Salsbery

          LTNS led mike! :)

          "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Hey Mark... was on the road for a few days and then playing catch up ;)

          1 Reply Last reply
          0
          • M Mark Salsbery

            LTNS led mike! :)

            "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            ROTFLMAO :laugh::laugh: Five hours old but I just saw this[^].... nothing changed much in my absence eh? "Code Project... best entertainment value on the Web!" :cool:

            M 1 Reply Last reply
            0
            • L led mike

              ROTFLMAO :laugh::laugh: Five hours old but I just saw this[^].... nothing changed much in my absence eh? "Code Project... best entertainment value on the Web!" :cool:

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              led mike wrote:

              "Code Project... best entertainment value on the Web!"

              :laugh: !! I came close to opening that can of worms (the link) :)

              "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

              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