Pike v8.1 release 6

Method Stdio.getprotobyname()


Method getprotobyname

int getprotobyname(string(8bit) name)

Description

Returns the protocol number of the protocol name. This calls the POSIX function getprotobyname. If the protocol cannot be found an error is thrown.