Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.322 kb
include "rawnet.idr";
main = do { sock <- _prim_socket INET Stream;
r <- _prim_connect sock (HostPort "127.0.0.1" 4567);
putStrLn (showInt r);
pkt <- newPacket 32;
_prim_send sock pkt;
sleep 1;
dg <- _prim_recv sock;
putStrLn "Done";
};
Jump to Line
Something went wrong with that request. Please try again.