in reply to Re: How I unconditionally wait for data in 7 seconds?
in thread How I unconditionally wait for data in 7 seconds?

The code did not work. Tried it now and it requires a newline for it to accept the input. It wont even detect the first char until I send a newline.
  • Comment on Re^2: How I unconditionally wait for data in 7 seconds?

Replies are listed 'Best First'.
Re^3: How I unconditionally wait for data in 7 seconds?
by ikegami (Patriarch) on Feb 11, 2015 at 20:20 UTC
    Your sender might not be sending until its got a newline to send.
Re^3: How I unconditionally wait for data in 7 seconds?
by BrowserUk (Patriarch) on Feb 11, 2015 at 17:21 UTC

    Only if you didn't use the code I posted.

    So, post your short, runnable example that demonstrates the problem and I'll point out what you did wrong.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
      Found out the problem. It was a prolematic config in the xinetd causing it to buffer Everything until newline. I took a default config from a Another Linux distribution and now it works perfectly.

        Thanks for getting back to us :)


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
        In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked