11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoCHAPTER 16 • NETWORKINGRetrieving a Port Number’s Service NameThe getservbyport() function returns the name of the service corresponding to the supplied portnumber. Its prototype follows:string getservbyport(int port, string protocol)The protocol parameter specifies whether you’re referring to the tcp or the udp component of theservice. Consider an example:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!