PreviousUpNext

14.4.38  Net_Service_Db

The standard library Net_Service_Db api defines access to basic TCP/IP logic to look up a service by name or by number.

The Net_Service_Db api is implemented by the net_service_db package.

The Net_Service_Db api source code is in src/lib/std/src/socket/net-service-db.api.

The above information is manually maintained and may contain errors.

api {
    Entry ;
    name : Entry -> String;
    aliases : Entry -> List(String );
    port : Entry -> Int;
    protocol : Entry -> String;
    get_by_name : (String , Null_Or(String )) -> Null_Or(Entry );
    get_by_port : (Int , Null_Or(String )) -> Null_Or(Entry );
};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext