in reply to syswrite strange behaviour on some systems
That doesn't make sense. If you want unbuffered I/O on a socket, then set it using Fcntl or using the appropriate socket option. But why not skip "unbuffered" and flush as necessary. This loop is inefficient and serves no obvious purpose. In fact, it may be what's confusing the WHOIS server since your loop is quite possibly sending a packet at a time (system-specific). Perhaps your $write is not '\0' ended which the server may expect? This is really guesswork but the real solution is use the REAL methods of unbuffered I/O. Perhaps since you're iterating through a list of servers, you'll want this to speed things up a bit?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: syswrite strange behaviour on some systems
by dash2 (Hermit) on Apr 02, 2001 at 20:56 UTC | |
by tye (Sage) on Apr 02, 2001 at 23:01 UTC | |
by dash2 (Hermit) on Apr 03, 2001 at 05:01 UTC | |
by tye (Sage) on Apr 03, 2001 at 08:29 UTC |