12.07.2015 Views

Socket

Socket

Socket

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Finding the Port Number■ In Chapter 1, you learned that there's a list of well-knownserver port numbers.■ Most operating systems will ship with a version of thatlist, which you can query.■ To query the list, you need two parameters: a protocolname and a port name.■ port name is a string such as http that can be convertedinto a port number.Try it out !Creating socket... done.Looking up port number... done.Connecting to remote host on port 80... done.

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

Saved successfully!

Ooh no, something went wrong!