nss.io

This module implements the NSPR IO functions

Functions

addr_family_name(family)

get_proto_by_name

Returns the protocol number given the protocol's name.

get_proto_by_number

Returns the protocol name and a tuple of aliases given the protocol's number.

htonl

32 bit conversion from host to network

htons

16 bit conversion from host to network

interval_now()

You can use the value returned by interval_now() to establish epochs and to determine intervals (that is, compute the difference between two times)

interval_to_microseconds

Converts platform-dependent intervals to standard clock microseconds

interval_to_milliseconds

Converts platform-dependent intervals to standard clock milliseconds

interval_to_seconds

Converts platform-dependent intervals to standard clock seconds

microseconds_to_interval

Converts standard clock microseconds to platform-dependent intervals.

milliseconds_to_interval

Converts standard clock milliseconds to platform-dependent intervals.

ntohl

32 bit conversion from network to host

ntohs

16 bit conversion from network to host

seconds_to_interval

Converts standard clock seconds to platform-dependent intervals.

ticks_per_second()

An integer between 1000 and 100000 indicating the number of ticks per second counted by PRIntervalTime on the current platform.

Classes

AddrInfo(hostname[, family, flags])

HostEntry(addr)

NetworkAddress(addr[, port, family])

Socket([family, type])