tml-network

TML basic network types and functions

npm install tml-network
6 downloads in the last week
12 downloads in the last month

tml-network(3) -- basic Network types and functions

SYNOPSIS

tml-network basic Network types and functions.

OPTIONS

SYNTAX

ENVIRONMENT

RETURN VALUES

STANDARDS

SECURITY CONSIDERATIONS

BUGS

HISTORY

AUTHOR

SEE ALSO

IMPLEMENTATION


Network

    @purpose network helper types;
    @author Erin Phillips;
    @version 0.0.1-3;

code

type Connection(@addr$,@port#)

method getAddr -> $

    =@addr;

method getPort ->

    =@port;

-- TESTS --;

test CONNECTION

    vars o=new Connection('localhost',27017);

test-eq : should set address

    o.getAddr() vs 'localhost'

test-eq : should set port

    o.getPort() vs 27017

    ;
npm loves you