Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

35. Information from System Databases > Information About Network Protocols

Information About Network Protocols

In list context, each of these routines returns a list of values. Use the standard module Net::protoent for by-name access to the elements of the list:

Index

Name

Description

0

name

Protocol name

1

aliases

Alias names

2

proto

Protocol number

endprotoent

Ends lookup processing.

getprotobyname name

Gets information by protocol name. In scalar context, returns the protocol number.

getprotobynumber number

Gets information by protocol number. In scalar context, returns the name of the protocol.

getprotoent

Gets next protocol information. In scalar context, returns the name of the protocol.

setprotoent stayopen

Resets lookup processing.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint