summaryrefslogtreecommitdiffstats
path: root/rand.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-29 08:13:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-29 08:13:58 -0700
commita3d38b3ffebe842b8e5d5ddb8e273c285302939e (patch)
treee7e17a745e984c9a80ad458a6c631f3633555dfe /rand.c
parentabb24b028898ccf39a82234e3bcf734153bbf9c0 (diff)
downloadtxr-a3d38b3ffebe842b8e5d5ddb8e273c285302939e.tar.gz
txr-a3d38b3ffebe842b8e5d5ddb8e273c285302939e.tar.bz2
txr-a3d38b3ffebe842b8e5d5ddb8e273c285302939e.zip
Support byte oriented mode in dgram sockets.
* socket.c (struct dgram_stream): New member, is_byte_oriented. (dgram_get_char): In byte oriented mode, just get one byte and convert to a character just like stdio_get_char: zero goes to U+DC00, and 0x01-0xFF go to U+0001 to U+FFFF. (dgram_get_prop, dgram_set_prop): Handle :byte-oriented property for getting and setting the is_byte_oriented flag.
Diffstat (limited to 'rand.c')
0 files changed, 0 insertions, 0 deletions