about summary refs log tree commit diff stats
path: root/091socket.cc
Commit message (Collapse)AuthorAgeFilesLines
* 4266 - space for alloc-id in heap allocationsKartik Agaram2018-06-241-1/+1
| | | | This has taken me almost 6 weeks :(
* 4258 - undo 4257Kartik Agaram2018-06-151-1/+1
|
* 4257 - abortive attempt at safe fat pointersKartik Agaram2018-06-151-1/+1
| | | | | | | | | | | | | | | | I've been working on this slowly over several weeks, but it's too hard to support 0 as the null value for addresses. I constantly have to add exceptions for scalar value corresponding to an address type (now occupying 2 locations). The final straw is the test for 'reload': x:num <- reload text 'reload' returns an address. But there's no way to know that for arbitrary instructions. New plan: let's put this off for a bit and first create support for literals. Then use 'null' instead of '0' for addresses everywhere. Then it'll be easy to just change what 'null' means.
* 3877Kartik K. Agaram2017-05-261-11/+11
|
* 3602Kartik K. Agaram2016-10-271-15/+13
| | | | | Simplify primitive interface to read from a socket: now returns just a single character.
* 3600 - allow reading a single byte from a socketKartik K. Agaram2016-10-271-3/+3
| | | | | | | Required fixing an off-by-one error. (Not bothering writing a test for this since I'm hoping to simplify $read-from-socket to always return a single character..)
* 3595Kartik K. Agaram2016-10-251-1/+1
| | | | | Fix for that annoying popup from the Mac OS firewall: inside tests keep any opened ports accessible only to localhost.
* 3586Kartik K. Agaram2016-10-241-0/+10
| | | | Make sure we clear the socket variable after closing it.
* 3585Kartik K. Agaram2016-10-241-11/+0
|
* 3584Kartik K. Agaram2016-10-241-2/+1
|
* 3583Kartik K. Agaram2016-10-241-5/+5
|
* 3582Kartik K. Agaram2016-10-241-3/+3
|
* 3581Kartik K. Agaram2016-10-241-2/+21
| | | | | | | Fix CI. 3 different memory leaks in the socket internals. The hard one was recognizing the need for `receive-from-client-socket-and-close`.
* 3579Kartik K. Agaram2016-10-241-1/+1
|
* 3571 - make 'read-from-socket' non-blockingKartik K. Agaram2016-10-231-11/+32
| | | | Its interface now mirrors that of 'read-event'.
* 3563Kartik K. Agaram2016-10-231-1/+1
|
* 3562Kartik K. Agaram2016-10-221-6/+2
| | | | Fix CI. Revert accidentally-added files.
* 3561Kartik K. Agaram2016-10-221-2/+6
|
* 3523 - http client now workingKartik K. Agaram2016-10-201-7/+92
|
* 3522Kartik K. Agaram2016-10-191-1/+1
|
* 3519 - reading lots of data from a socketKartik K. Agaram2016-10-181-2/+11
| | | | | | In the process I've also altered the API of $read-from-socket to return a boolean (eof?) rather than the number of bytes read (which is implicit in the length of the returned array).
* 3508Kartik K. Agaram2016-10-161-2/+2
|
* 3499Kartik K. Agaram2016-10-151-2/+1
|
* 3486Kartik K. Agaram2016-10-081-3/+3
|
* 3485Kartik K. Agaram2016-10-081-2/+2
|
* 3484Kartik K. Agaram2016-10-081-5/+5
|
* 3482Kartik K. Agaram2016-10-081-1/+1
|
* 3477Kartik K. Agaram2016-10-081-0/+5
|
* 3476Kartik K. Agaram2016-10-071-8/+8
|
* 3473Kartik K. Agaram2016-10-071-2/+2
|
* 3472Kartik K. Agaram2016-10-071-2/+2
|
* 3471Kartik K. Agaram2016-10-071-10/+17
|
* 3470Kartik K. Agaram2016-10-071-3/+4
|
* 3469Kartik K. Agaram2016-10-071-5/+5
|
* 3467Kartik K. Agaram2016-10-071-19/+18
|
* 3466Kartik K. Agaram2016-10-071-13/+14
|
* 3427Kartik K. Agaram2016-09-271-2/+5
|
* 3412Kartik K. Agaram2016-09-241-6/+8
| | | | Clean up a memory leak and a couple of other things.
* 3403Stephen Malina2016-09-211-28/+19
| | | | | 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-16/+56
| | | | | | | $write-to-socket, $read-from-socket, and $accept now pass around references to socket pointers. $read-from-socket handles EOF explicitly.
* 3349Kartik K. Agaram2016-09-141-2/+6
| | | | Fix a warning on some compilers.
* 3323 - Add simple network primitivesStephen Malina2016-09-111-0/+166
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.