title: How to extract port number from /etc/services file
body: <p>How will client process extract the port number with not a well known port on which server process is working.
  In Unix we have file /etc/services contain entries like
  for Ex.
  netperf 12865/udp
  netperf 12865/tcp
  How the client will extract the port number 12865 from this file (/etc/services) and begin the communication? Is there any specific function which will do this work?</p>