[racket-users] Re: Issue about tcp port, server doesn't receive bytes using read-bytes-avail!* and client using write-bytes

2019-01-13 Thread Zhonghua Zhu
Oh, thank you very much. I'll try it later. 在 2019年1月12日星期六 UTC+8下午11:55:08,Zhonghua Zhu写道: > > I am writing a tcp server program. > Server uses non-blocking reading and client uses write-bytes, then server > never read any bytes and write-bytes returns the right value. > Bu

[racket-users] Issue about tcp port, server doesn't receive bytes using read-bytes-avail!* and client using write-bytes

2019-01-12 Thread Zhonghua Zhu
I am writing a tcp server program. Server uses non-blocking reading and client uses write-bytes, then server never read any bytes and write-bytes returns the right value. But when I change client's write-bytes to write-bytes-avail, server receives bytes immediately. I don't know why this