Linux, Sockets and C

From: tomek (toolfour_at_wp.pl)
Date: 11/30/04


Date: Tue, 30 Nov 2004 17:20:31 +0100

Hello

I got client-server application, client working in linux - server in
windows, but it doesn't matter. I want keeping connection for long time
and make reconnections in linux client, for example: when physical
connection between two machines is broken, client should be still alive,
and reconnect to server when this will be possible. I don't know, how
can I check current state of socket (connected/dissconnected) in linux.
my application is wrote in pure c, but it isn't problem to migrate to
c++ if this will be necessary. Now when I stop server I gets message:
"Broken pipe" and client crashes. I know - this is when i write two
times to non connected socked, but how can I check that socked is still
connected without read from server? (server should not reply, but if
this is only way, it will)

Somebody help me?

Regards
Tomek

-- 
Don't panic - we're from Poland


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)