Hello :) ,

It's working, but both clients (localhost and gprs) executes cmdClient, gprsClient is not used.

Correction - it is all correct!
I'll do some tests now

Gprs clients perfectly connects to the server and keep sending data.
Localhost client does not execute commands and just closes itself, even if there are some gprs clients connected.
If there is no connection, for I guess 500 sec, server closes itself.
And at last, on clients abnormal disconnection, threads remain connected.

Servers echo:

gprsClient [4227801339] running on 4 4227801339: Command response: data test gprsClient [4227801339] running on 5 4227801339: Command response: data second client gprsClient [4227801339] running on 6 4227801339: Command response: data third client Command Client running on 7 cmdClient [859189299] disconnected
If you have some more suggestions, I would really appreciate!

Regards, Igor


In reply to Re^10: Non closing sockets - threads by igor1212
in thread Non closing sockets - threads by igor1212

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.