Find the answer to your Linux question:
Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Understanding TCP/IP: Port ok to bind

    Dear All,

    I am trying to understand the tcp socket implementation.

    There is a remote server serving at say Port 5000. Now when a linux client tries to open a socket to talk to the server at this port where in kernel code does the socket get bound to a port or rather where does the linux kernel accept a users request(SOCK_STREAM) to open a socket at a particular port and where does it restrict the port numbers to a particular range?

    I was already looking at af_inet.c where the socket is getting created. But was a little confused.

    Do let me know.
    Last edited by ninja123; 08-18-2011 at 12:31 PM. Reason: clarity

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts