Socket and Hashtable-Pls guide..

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kapil Shah (krshah45324_at_yahoo.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 11:15:00 -0700


Hi Guys,
I have created a console multithreaded client server application where
many client connects to the server.I am adding the clientID and Socket
to the hash table. I have added a timer to the server which fires every
30 seconds and asks the client whether the client is connected…
         However when I connect two clients say
(kshah,sck1)
(mkshah,sck2)

and then close the connection for kshah and then remove kshah with sck1
from the hash table the server does not receive any data from client
mkshah with sck2 saying that it is connected to the server. But when
I close the connection and remove mkshah with sck2 from the hash table,
the server receives data from kshah with sck1 saying it is connected to
the server…
        Can anyone guide me what could be the problem be with the
connection or hash table. I tried to enumerate the hash table but did
not work got System.InvalidOperationException error.

Pls guide…

Thanks,

Rahil

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: .Net Scalability problem
    ... LoadRunner will peak out a server with a few virtual users. ... To get an idea of load, ... Fire off the test client and watch the number of ... > So I think that the MTC generate concurrent connection and per ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection lost at same time every hour (sometimes)
    ... After making the two following alterations on the server the problem seems ... After analyze your ipconfig on SBS and client, ... Then, other connection is good, ...
    (microsoft.public.windows.server.sbs)
  • Re: server disconnection - very often
    ... Reason of permanent popups is VMware server aplication on clients. ... Run CEICW to configure the network of SBS: ... Two network adapters - manual router connection to broadband ... Uninstall VMware on client. ...
    (microsoft.public.windows.server.sbs)
  • Re: Lan setup 2 nic
    ... The external nic only has TCP/IP enabled. ... Ipconfig of the server is looking good, but the client is still missing the ... > connection so we have a 2 nic with router setup now. ...
    (microsoft.public.windows.server.sbs)
  • Re: Regular disconnections from remote web workplace
    ... I can connect to office server and all office clients from home at all times ... be physically working right up until the connection is lost. ... If I enter http://companyip from a client I receive the login screen for the ... Click Services tab and select Hide All Microsoft Services and Disable ...
    (microsoft.public.windows.server.sbs)