[racket-users] Debug help with Unix Write

2016-02-12 Thread Ty Coghlan
As part of a course I'm in, we had to write a simple bridge simulation that could handle data messages to and from unix ports that have attached to them several hosts. In addition, these bridges have to implement a simple spanning tree algorithm, and send and receive BPDU messages. These

Re: [racket-users] Debug help with Unix Write

2016-02-12 Thread Ryan Culpepper
Unix socket ports are block-buffered, so after writing to them you need to flush the output. Something like (write-json data port) (flush-output port) Your code on github has calls to flush-output without the port argument. That doesn't flush the unix socket port; it flushes the current

Re: [racket-users] Debug help with Unix Write

2016-02-12 Thread Matthias Felleisen
On Feb 12, 2016, at 1:24 PM, Ty Coghlan wrote: > As part of a course I'm in, we had to write a simple bridge simulation that > could handle data messages to and from unix ports that have attached to them > several hosts. In addition, these bridges have to implement a