CAsyncSocket - Connected or not?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hello,

I starting to do my first Client/Server application. We are using TCP/IP.
I'm doing the Client, The server already exists. I'm programming in VC++
2005 MFC using CAsyncSocket.

In the specification is says that the client will connect to the Server and
then both server and client may start a transaction. there may only be one
transaction alive at the time.

I'm a bit confused about how I now if the connection is alive or not. I
know that one of the test that will be done is to remove the network cable
and after 5-10 minutes attach it again and now the connection has to be
continued.

Will the connection be aborted by removing the network cable?
Can I test if the connection is alive or not?

// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the translation.
Please correct me so I may improve my English!
.



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)