diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-07 13:20:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-07 13:20:51 -0700 |
commit | 7955af48cf8def1139287cf4036b07fefb57aa94 (patch) | |
tree | e0d02dc881ebae315d8771df7d1eacd23a39e9d5 /092socket.mu | |
parent | b0b486732a056d3d54ece46282821edbc42d85f8 (diff) | |
download | mu-7955af48cf8def1139287cf4036b07fefb57aa94.tar.gz |
3463
Diffstat (limited to '092socket.mu')
-rw-r--r-- | 092socket.mu | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/092socket.mu b/092socket.mu index 60515b06..0a2bac1d 100644 --- a/092socket.mu +++ b/092socket.mu @@ -49,9 +49,9 @@ scenario write-to-fake-socket [ tested-port-connections:&:@:port-connection <- get *single-port-network, data:offset tested-port-connection:port-connection <- index *tested-port-connections, 0 contents:text <- get tested-port-connection, contents:offset - 10:bool/raw <- equal contents, [x] + 10:@:char/raw <- copy *contents memory-should-contain [ - 10 <- 1 + 10:array:character <- [x] ] ] @@ -61,11 +61,10 @@ def start-writing-socket network:&:local-network, port:num -> sink:&:sink:char, source:&:source:char, sink:&:sink:char <- new-channel 30 { break-if network - socket:num <- $socket 8080/port + socket:num <- $socket port session:num <- $accept socket # TODO Create channel implementation of write-to-socket. - routine-id <- copy 0 - return + return sink, 0/routine-id } # fake network routine-id <- start-running transmit-to-fake-socket network, port, source |