Next: net channels channels tochannel, Previous: net channels channels biochannel, Up: net channels channels [Index]
<textual-input-only-channel>
typeThe following syntactic bindings are exported by the library
(vicare net channels)
.
Expose the methods for all the textual input–only channels.
The input or input/output textual port used to receive messages from a remote process.
Accessor and mutator for the maximum number of characters read at each “receive message portion” operation.
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 characters.
(list-of <nestring>)
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 string 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 string 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 channels tochannel, Previous: net channels channels biochannel, Up: net channels channels [Index]