network.endpoints.stdio - Palamecia/mint GitHub Wiki

Module network.endpoints.stdio

Description

load network.endpoints.stdio

This module provides the Network.StdioEndpoint abstraction for representing an endpoint reachable using stdin and stdout.

Packages

Classes

Network.StdioEndpoint

This class provides an address to access a peer process using stdin and stdout.

Inherits

Public members

Modifiers Member Description
const getReadHandle Returns a handle useable by Network.StdioEndpoint.Network.Poller to wait for ...
const getWriteHandle Returns a handle useable by Network.StdioEndpoint.Network.Poller to wait for ...
const new Creates a new end point for the fdRead and fdWrite handles. Those parameter m...

Private members

Modifiers Member Description
@ const g_lib Global library handle.
final readHandle Internal read handle.
final writeHandle Internal write handle.

Descriptions

Network.StdioEndpoint.g_lib

lib ('libmint-network')

Global library handle.

Network.StdioEndpoint.getReadHandle

def (const self)

Returns a handle useable by Network.Poller to wait for data on the read end of the socket.

Network.StdioEndpoint.getWriteHandle

def (const self)

Returns a handle useable by Network.Poller to wait for data on the write end of the socket.

Network.StdioEndpoint.new

def (self, fdRead, fdWrite)

Creates a new end point for the fdRead and fdWrite handles. Those parameter may either be an handle using an instance of mint::handle_t (C++) or a file descriptor described as a number (like System.stdin and System.stdout). The fdRead provides the handle to read data from the peer (its stdout) and fdWrite provides the handle to write data to the peer (its stdin).

Network.StdioEndpoint.readHandle

none

Internal read handle.

Network.StdioEndpoint.writeHandle

none

Internal write handle.