PreviousUpNext

14.4.57  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 );
    Servent;
    get_service_by_name__syscall : (String , Null_Or(String )) -> Null_Or(Servent );
        set__get_service_by_name__ref :
                (
                {fun_name:String, io_call:(String , Null_Or(String )) -> Null_Or(Servent ), lib_name:String}
                ->
                (String , Null_Or(String )) -> Null_Or(Servent )
                )
            ->
            Void;
    get_service_by_port__syscall : (Int , Null_Or(String )) -> Null_Or(Servent );
        set__get_service_by_port__ref :
                (
                {fun_name:String, io_call:(Int , Null_Or(String )) -> Null_Or(Servent ), lib_name:String}
                ->
                (Int , Null_Or(String )) -> Null_Or(Servent )
                )
            ->
            Void;};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext