I'm playing with sockets (I'm on 'use Socket' not 'use IO::Socket' - I want to play with the low-level stuff then I'll look at the high-level version) I'm doing ok except for the infuriating 'does the same as the system call of the same name' which I find thoughout the manual. Problem is a windows system doesn't document unix system call very well! - Back to the point - my accept is working ok - but is a 'blocking' call (i.e: waits until data arrives before returning). I assume there is a non-blocking version of accept which I can use to check if there is data present but will return immediately if none is present. Problem is I don't know how to do this. I'm assuming it's a setsockopt of some kind - or a parameter to accept, but the manual won't tell me...;-(.
Help please. Many thanks - cool web site by the way!
Richard.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|