Package avail. interpreter. primitive. sockets
Types
Primitive: Accept an incoming connection on the asynchronous server socket referenced by the specified handle, using the supplied name for a newly connected socket. Create a new fiber to respond to the asynchronous completion of the operation; the fiber will run at the specified priority. If the operation succeeds, then eventually start the new fiber to apply the success function to a handle on the new socket. If the operation fails, then eventually start the new fiber to apply the failure function to the numericerror code. Answer the new fiber.
Primitive: Answer the socket address of the AsynchronousServerSocketChannel referenced by the specified handle.
Primitive: Close the AsynchronousServerSocketChannel referenced by the specified handle.
Primitive: Bind the AsynchronousServerSocketChannel referenced by the specified handle to an IPv4 address and port. The bytes of the address are specified in network byte order, i.e., big-endian.
Primitive: Bind the AsynchronousServerSocketChannel referenced by the specified handle to an IPv6 address and port. The bytes of the address are specified in network byte order, i.e., big-endian.
Primitive: Open an AsynchronousServerSocketChannel. Answer a handle that uniquely identifies the socket.
Primitive: Set the socket options for the asynchronous server socket referenced by the specified handle.
Primitive: Close the AsynchronousSocketChannel referenced by the specified handle.
Primitive: Bind the AsynchronousSocketChannel referenced by the specified handle to an IPv4 address and port. The bytes of the address are specified in network byte order, i.e., big-endian.
Primitive: Connect the AsynchronousSocketChannel referenced by the specified handle to an IPv4 address and port. Create a new fiber to respond to the asynchronous completion of the operation; the fiber will run at the specified priority. If the operation succeeds, then eventually start the new fiber to apply the success function. If the operation fails, then eventually start the new fiber to apply the failure function to the numeric error code. Answer the new fiber.
Primitive: Bind the AsynchronousSocketChannel referenced by the specified handle to an IPv6 address and port. The bytes of the address are specified in network byte order, i.e., big-endian.
Primitive: Connect the AsynchronousSocketChannel referenced by the specified handle to an IPv6 address and port. Create a new fiber to respond to the asynchronous completion of the operation; the fiber will run at the specified priority. If the operation succeeds, then eventually start the new fiber to apply the success function. If the operation fails, then eventually start the new fiber to apply the failure function to the numeric error code. Answer the new fiber.
Primitive: Answer the socket address of the local peer of the AsynchronousSocketChannel referenced by the specified handle.
Primitive: Open an AsynchronousSocketChannel. Answer a handle that uniquely identifies the socket.
Primitive: Initiate an asynchronous read from the socket referenced by the specified handle. Create a new fiber to respond to the asynchronous completion of the operation; the fiber will run at the specified priority. If the operation succeeds, then eventually start the new fiber to apply the success function to the result tuple and a boolean that is true if the socket is exhausted. If the operation fails, then eventually start the new fiber to apply the failure function to the numeric error code. Answer the new fiber.
Primitive: Answer the socket address of the remote peer of the AsynchronousSocketChannel referenced by the specified handle.
Primitive: Set the socket options for the asynchronous socket channel referenced by the specified handle.
Primitive: Disallow further reading from the asynchronous socket referenced by the specified handle.
Primitive: Disallow further writing to the asynchronous socket referenced by the specified handle.
Primitive: Initiate an asynchronous write from the socket referenced by the specified handle. Create a new fiber to respond to the asynchronous completion of the operation; the fiber will run at the specified priority. If the operation succeeds, then eventually start the new fiber to apply the success function. If the operation fails, then eventually start the new fiber to apply the failure function to the numericerror code. Answer the new fiber.