Re: Linux, Sockets and C

Jens.Toerring_at_physik.fu-berlin.de
Date: 11/30/04


Date: 30 Nov 2004 16:42:57 GMT

tomek <toolfour@wp.pl> wrote:
> 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)

Since this is not a C related question (there are no network functions
in standard C and, as you write yourself, you could also write it in a
different language) you better ask in comp.os.linux.development.apps
or comp.unix.programmer - it's off-topic here.

                                     Regards,Jens

-- 
  \   Jens Thoms Toerring  ___  Jens.Toerring@physik.fu-berlin.de
   \__________________________  http://www.toerring.de


Relevant Pages

  • Re: Linux, Sockets and C
    ... I want keeping connection for long time ... > and make reconnections in linux client, ... > connection between two machines is broken, client should be still alive, ... > and reconnect to server when this will be possible. ...
    (comp.os.linux.development.apps)
  • Re: Linux, Sockets and C
    ... I want keeping connection for long time ... > and make reconnections in linux client, ... > can I check current state of socket in linux. ...
    (comp.lang.c)
  • Re: Linux, Sockets and C
    ... I want keeping connection for long time ... > and make reconnections in linux client, ... > and reconnect to server when this will be possible. ...
    (comp.os.linux.development.apps)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)