diff options
author | Stephen Malina <stephenmalina@gmail.com> | 2016-09-11 16:26:44 -0400 |
---|---|---|
committer | Stephen Malina <stephenmalina@gmail.com> | 2016-09-11 17:16:47 -0400 |
commit | 68578a7828ce8300fa10b28b5f57e56723303e93 (patch) | |
tree | 6d8683701f44ccabada39644c8054c07b9790249 /042name.cc | |
parent | fa20bd3143ffb637e438b44dcb10b56d9abf9888 (diff) | |
download | mu-68578a7828ce8300fa10b28b5f57e56723303e93.tar.gz |
3323 - Add simple network primitives
Includes four Mu functions: - $socket: Creates the C structure for a socket and tries to bind and listen on a user-provided port. - $accept: Returns a number pointer to a new socket session. Should be called with the result of $socket. - $read-from-socket: Read one character from the socket, passed in as a Mu number. Should only be called after calling $socket and $accept. - $close-socket: Takes two parameters, one for the result of $socket and one for the result of $accept, closing both sockets and releasing bound ports.
Diffstat (limited to '042name.cc')
0 files changed, 0 insertions, 0 deletions