> As an aside, the new socket stuff in Poplog 15 is wonderful. Well
> done to the entire development team!
Agreed. This is all it takes to set up a link to a news server:
lvars
nntp_socket = sys_socket_to_service([^nntpserver 'nntp', "line");
Then you can use sysread and syswrite on nntp_socket (if you know the
NNTP protocols!).
By the way, the example in REF SOCKETS is
vars nntp_sock =
sys_socket_to_service(['mc.site.ac.uk' 'nntp'], false);
which will work, but I think should have "line" instead of false. I
found it much more convenient to have a line repeater for reading from
the server.
Aaron
|