about summary refs log tree commit diff stats
path: root/server-socket.mu
Commit message (Collapse)AuthorAgeFilesLines
* 3404Kartik K. Agaram2016-09-221-5/+5
|
* 3403Stephen Malina2016-09-211-9/+45
| | | | | Wrap $read-from-socket in a channel and fix the socket example so that browser's display the response properly.
* 3399 - Update network primitives.Stephen Malina2016-09-181-3/+21
| | | | | | | $write-to-socket, $read-from-socket, and $accept now pass around references to socket pointers. $read-from-socket handles EOF explicitly.
* 3389Kartik K. Agaram2016-09-171-1/+1
|
* 3380Kartik K. Agaram2016-09-171-2/+2
| | | | | One more place we were missing expanding type abbreviations: inside container definitions.
* 3379Kartik K. Agaram2016-09-171-1/+1
| | | | Can't use type abbreviations inside 'memory-should-contain'.
* 3323 - Add simple network primitivesStephen Malina2016-09-111-0/+14
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.