bins and setsockopt

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • asit

    bins and setsockopt

    bind returns error when a port is already in use ....some process may
    be using it or the port may be just port is not used still it is
    hanging around kernel...

    how can i kinow the difference between these ????
  • Nick Keighley

    #2
    Re: bins and setsockopt

    On 7 Oct, 12:44, asit <lipu...@gmail. comwrote:
    bind returns error when a port is already in use ....some process may
    be using it or the port may be just port is not used still it is
    hanging around kernel...
    >
    how can i kinow the difference between these ????
    stop posting this off-topic stuff to comp.lang.c.

    plonk

    Comment

    • Ian Collins

      #3
      Re: bins and setsockopt

      asit wrote:
      bind returns error when a port is already in use ....some process may
      be using it or the port may be just port is not used still it is
      hanging around kernel...
      >
      how can i kinow the difference between these ????
      By asking somewhere were socket programming is topical...

      --
      Ian Collins.

      Comment

      • asit

        #4
        Re: bins and setsockopt

        Can anyone please give me a good link of a community in which this
        question won't be off topic ????

        Comment

        • vippstar@gmail.com

          #5
          Re: bins and setsockopt

          On Oct 7, 3:19 pm, asit <lipu...@gmail. comwrote:
          Can anyone please give me a good link of a community in which this
          question won't be off topic ????

          Please leave enough context for your articles to make sense.
          Your question was about bind.
          I told you bind is not standard C, but if you're looking for the POSIX
          one, you should ask in comp.unix.progr ammer.
          I even posted a follow-up there.

          If you use google groups, use the following link
          <http://groups.google.com/group/comp....browse_thread/
          thread/0020b79c71e7541 b>

          Else use this message ID
          Message-ID: <b5ca1eed-d849-4b19-a333-
          dcc31b168bc7@y2 9g2000hsf.googl egroups.com>

          Comment

          • Keith Thompson

            #6
            Re: bins and setsockopt

            asit <lipun4u@gmail. comwrites:
            bind returns error when a port is already in use ....some process may
            be using it or the port may be just port is not used still it is
            hanging around kernel...
            >
            how can i kinow the difference between these ????
            For Unix/Linux/POSIX systems, try comp.unix.progr ammer.

            For MS Windows, try comp.os.ms-windows.program mer.win32.

            --
            Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
            Nokia
            "We must do something. This is something. Therefore, we must do this."
            -- Antony Jay and Jonathan Lynn, "Yes Minister"

            Comment

            • Antoninus Twink

              #7
              Re: bins and setsockopt

              On 7 Oct 2008 at 11:44, asit wrote:
              bind returns error when a port is already in use ....some process may
              be using it or the port may be just port is not used still it is
              hanging around kernel...
              >
              how can i kinow the difference between these ????
              I don't understand the second description, but if bind() returns -1 for
              failure, you can see what went wrong by examining errno. For example,
              errno will be set to EADDRINUSE if the given address is already in use.

              By the way, your questions are 100% topical, and you'd do well to ignore
              the cantankerous few who insist otherwise.

              Ask yourself the following questions:
              1) Out of the people who've whined about "topicality ", how many of them
              have given you a useful answer to any of your questions?
              2) Given 1), do you think you've got anything to gain by giving in to
              their childish clamoring?

              Help keep this group healthy with more good C questions!

              Comment

              Working...