Continuing on binary input and output ports
By default character ports use the value of the string parameter character-set as the character encoding name. Reading from an input port reads from the connected socket. Returns the length, in bytes, of the given file.
If procedure returns, call-with-port closes the port and continuing on binary input and output ports the values returned by procedure. The function produces an error if a character port is passed. Once a sending socket has been obtained the second forman output-port can be obtained in the usual manner, and datagrams can be immediately sent to the multicast group. SISC includes a pretty-printer, a function that behaves like writebut introduces whitespace in order to make the output of data more readable to humans. String PortsPrevious:
Each string names one child, and is a filename relative to the given directory. Opens a character output port to the socket. The buffer-mode syntax provides useful documentation as well. SISC maintains a list of class path extensions onto which class and resource loading falls back. If so, the procedure port-has-port-position?
Flushes any unwritten characters to the stream. As a continuing on binary input and output ports effect of creating the textual port, binary-port is closed to prevent read or write operations on binary-port from interfering with read and write operations on the new textual port. Thus, filename can be either a string or a pathname, and it is merged with the current pathname defaults to produce the pathname that is then opened. Buffered ports are provided in SISC to layer over any existing port, and read or write in larger, more efficient chunks.
After obtaining a UDP socket, input and output ports can be obtained in the usual manner. String and Bytevector Ports The procedures in this section allow bytevectors and strings to be used as input or output streams. Otherwise, it should read at continuing on binary input and output ports one and at most n bytes from the stream, store these bytes in consecutive locations of bytevector starting at startand return as an exact positive integer the number of bytes actually read.
Attempts to resolve a hostname provided as a string into an IP address in dotted-quad form. A textual port allows a program to read or write characters. SISC provides a special composed port type and procedures for reading and writing any Scheme value using a binary representation. All IP port values must be exact integers in the proper range.