Re: Linux, Sockets and C

From: Merrill & Michele (beckjensen_at_comcast.net)
Date: 11/30/04


Date: Tue, 30 Nov 2004 10:43:10 -0600


>"tomek"
> 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)

One is always happy to see new faces around here, but I think you'd find
better help in a newsgroup specific to linux. MPJ



Relevant Pages

  • Re: PPPoE and ADSL problem (1 solution)
    ... >> shutdown from Win and then boot into Linux. ... > of evidence of win xp and linux dual booting and linux having connection ... > this is a bug or not? ... Boot windows. ...
    (comp.os.linux.networking)
  • Linux Frequently Asked Questions with Answers (Part 5 of 6)
    ... You should also make sure that your Linux kernel clock is set to the ... connection, is usually contained in two or three separate files. ... How To Upgrade/Recompile a Kernel. ... Read the manuals, or a good book on Unix and the manual pages (type ...
    (comp.os.linux.misc)
  • Linux Frequently Asked Questions with Answers (Part 5 of 6)
    ... You should also make sure that your Linux kernel clock is set to the ... connection, is usually contained in two or three separate files. ... How To Upgrade/Recompile a Kernel. ... Read the manuals, or a good book on Unix and the manual pages (type ...
    (comp.os.linux.misc)
  • Linux Frequently Asked Questions with Answers (Part 5 of 6)
    ... You should also make sure that your Linux kernel clock is set to the ... connection, is usually contained in two or three separate files. ... How To Upgrade/Recompile a Kernel. ... Read the manuals, or a good book on Unix and the manual pages (type ...
    (comp.os.linux.misc)
  • Linux Frequently Asked Questions with Answers (Part 5 of 6)
    ... You should also make sure that your Linux kernel clock is set to the ... connection, is usually contained in two or three separate files. ... How To Upgrade/Recompile a Kernel. ... Read the manuals, or a good book on Unix and the manual pages (type ...
    (comp.os.linux.misc)