Re: (OT) UNbinding a socket

Discussion in 'C++' started by Michael Furman, Jun 23, 2003.

  1. Why are you asking in in the C++ groop where it is totally off-topick?
    Did you try call "close"?
    Michael

    "Everett Hickey" <> wrote in message
    news:...
    > This is on a redhat 7.x box using a standard socket.h...
    >
    > I've got my daemon doing everything it should, except I can't find a clean
    > way to unbind a port from a socket that's bound and listening. This

    doesn't
    > keep the program from working, but it means that if it exits I can't
    > immediately re-run it (since I have to wait for the port to unbind on it's
    > own). If I ctrl-c out of it (while it's not in the middle of
    > communications) it works fine, but otherwise if I try to find any way to
    > exit gracefully, it doesn't unbind the port.
    >
    > Anyone have a suggestion? I tried the shutdown feature, but it didn't

    seem
    > to have any effect that I could see... and nothing else looks useful (and
    > all online searches just turn up third-party libraries that I don't care

    to
    > use). There must be some simple way to do this...
    >
    >
    > --
    > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    -
    > - - - - - - - - - - - - - -
    > Everett Hickey
    > "With the basest of companions have I walked the streets of Houston."
    > - St
    > Augustine... sorta.
    >
    >
    Michael Furman, Jun 23, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sin

    Re: UNbinding a socket

    Sin, Jun 23, 2003, in forum: C++
    Replies:
    2
    Views:
    13,721
  2. Richard Spooner

    Unbinding sockets in threads..

    Richard Spooner, Aug 3, 2004, in forum: Python
    Replies:
    0
    Views:
    319
    Richard Spooner
    Aug 3, 2004
  3. Johnny Lin

    Unbinding multiple variables

    Johnny Lin, Jan 21, 2005, in forum: Python
    Replies:
    11
    Views:
    601
    Johnny Lin
    Jan 24, 2005
  4. Roger

    Tkinter unbinding

    Roger, Dec 18, 2008, in forum: Python
    Replies:
    17
    Views:
    2,879
    fabien
    Dec 4, 2011
  5. Roger
    Replies:
    7
    Views:
    681
    Roger
    Jan 13, 2009
Loading...

Share This Page