Next: net channels ifaces bochannel, Previous: net channels ifaces channel, Up: net channels ifaces [Index]
<<binary-input-channel>>
interfaceThe following syntactic bindings are exported by the library
(vicare net channels)
.
Expose the methods for all the binary input channels.
Accessor and mutator for the message termination markers. The argument terminators must represent the possible message terminators for this channel; when a terminator is received at the end of a chunk of data, the message is considered terminated.
Configure the channel to receive a new message. If this is not inactive: an assertion is raised.
Terminate the action of receiving a message. If this is not in the course of receiving a message: an assertion is raised.
Return two values:
<positive-fixnum>
representing the total length of the message
as number of bytes.
(list-of <nebytevector>)
representing the received data
as reverse buffer list (RBL), including the message
terminator.
After this function is applied to a channel: the channel itself is reset to inactive; so it is available to start receiving another message or to send a message.
Terminate the action of receiving a message. If this is not in the course of receiving a message: an assertion is raised. If this is not in “message terminated” status: an assertion is raised. Return a bytevector holding the full message, including the message terminator.
After this function is applied to a channel: the channel itself is reset to inactive; so it is available to start receiving another message or to send a message.
Abort the current operation and reset the channel to inactive. If this is not in the course of receiving a message: an assertion is raised.
Receive a portion of message. If this is not in the course of receiving a message: an assertion is raised.
#f
if a portion of message was read, and it does not
terminate with a message terminator; in this case we need to call this
function again to receive further message portions.
#t
if a portion of message was read, terminating with a
configured message terminator. The channel is put in “message
terminated” status.
#t
if the channel already read a terminator in a previous
operation and is in “message terminated” status.
Receive a full message. When successful return a bytevector representing the full message. If this is not inactive: an assertion is raised. If the underlying device is closed before the message is completed: return the EOF object.
Next: net channels ifaces bochannel, Previous: net channels ifaces channel, Up: net channels ifaces [Index]