Title: AW: [rtl] Off Topic - Ethernet releasing port addresses

Try to set socket option SO_REUSEADDR:

  i=1;
  setsockopt(socket,SOL_SOCKET,SO_REUSEADDR,(char *)&i,sizeof(i));

Olly

    -----Urspr�ngliche Nachricht-----
    Von:    Estabridis, Janet P
    Gesendet am:    Monday, July 30, 2001 4:52 PM
    An:     Estabridis, Janet P; ''[EMAIL PROTECTED]' '
    Betreff:        RE: [rtl] Off Topic - Ethernet releasing port addresses

     DOES ANYONE HAVE ANY COMMENTS ON THIS ?
    Thanks -- Janet

    -----Original Message-----
    From: Estabridis, Janet P
    To: '[EMAIL PROTECTED]'
    Sent: 7/13/01 7:20 AM
    Subject: [rtl] Off Topic - Ethernet releasing port addresses

    Hi,

    I'm using RTLV2.3 and kernel 2.2.14.  I will most likely upgrade
    everything
    to the newer versions, but not until the test system is accepted by the
    customer and that could be 3 months from now.

    I have miniRTL on 8 embedded machines 2 other Linux PC's and 3 Windows
    machines on a local network.  I have both real-time modules running on
    my
    linux PC's and user space applications.  Specifically, the user space
    applications send information to the Windows machines via ethernet
    socket
    code.  I have a set of defined port numbers that the information uses. 

    My problem is that sometimes when I know I have closed the code out and
    I
    restart it I get the message

    Unable to establish a port Connection:  Address already in use.

    And sometimes I have to re-boot a linux computer to get rid of this
    message
    so I can run my code.  It might be something I am doing but I have been
    seeing this for months now and I haven't come up with a solution.

    Any help, ideas, would be greatly appreciated..

    ----- End of forwarded message from [EMAIL PROTECTED] -----
    -- [rtl] ---
    To unsubscribe:
    echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
    echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
    --
    For more information on Real-Time Linux see:
    http://www.rtlinux.org/

    ----- End of forwarded message from [EMAIL PROTECTED] -----
    -- [rtl] ---
    To unsubscribe:
    echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
    echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
    --
    For more information on Real-Time Linux see:
    http://www.rtlinux.org/

Reply via email to