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. Web Development
  3. ASP.NET
  4. How to notify server that somebody connecting with server,

How to notify server that somebody connecting with server,

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminsalestutorial
2 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.
  • T Offline
    T Offline
    Tarun Dudhatra
    wrote on last edited by
    #1

    Hi everyone, I am developing a n application with asp.net 2.0 for provide our companys' customer. in home page there is one link like click here to live chat with admin. when user click on that link at that time it open new window and start the server and then client made a connection with the server with .connect method of tcpclient class. Its good and working file now i want to notify the server when client connect with the server, So server can accept the listner from client so, how can i come to know that some body has made a connection or connected with the server. I want to pass message from client to server and server to client.

    S 1 Reply Last reply
    0
    • T Tarun Dudhatra

      Hi everyone, I am developing a n application with asp.net 2.0 for provide our companys' customer. in home page there is one link like click here to live chat with admin. when user click on that link at that time it open new window and start the server and then client made a connection with the server with .connect method of tcpclient class. Its good and working file now i want to notify the server when client connect with the server, So server can accept the listner from client so, how can i come to know that some body has made a connection or connected with the server. I want to pass message from client to server and server to client.

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      If you want to keep track of all the connected client sessions, I would use an IInstanceContextProvider to find out when a new connection is made (in PerSession mode), and then use an IInputSessionShutdown to find out when each client disconnects. And by holding onto the channel objects themselves inside your SessionData, you can give the admin app that has access to it the ability to Close() or Abort() the channels.

      SSK.

      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