How does one use select on &input/reads?  It seems to work fine
for network (udp) sockets and &window, but when using &input
(see code snippet below), it gets the 
  Run-time error 1048; low-level read or select mixed with buffered read
error the second time the select is encountered.  What is going
on?  Is &input the correct item to select for?

Thanks,

Wendell

##################################

  as := open( ":1888","nua")

  select(&input, 0)  # Shamim says to do this first

  while *(L := (select(&input, as ) )) > 0 do
    every q := !L do
    {
      if q === as then {
        r := receive(as)
        write("msg=", r.msg)   # process msg
      }
      if q === &input then {
        if ch := reads(&input) then
        {
          if ch == "\n" then
          {
            write("line=", line)  # process line
            line := ""
          }
          else
          {
            line ||:= ch
          }
        }
      }
    }




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to