advertisement

Article:
  Networking and the BSD Sockets API
Subject:   Address in use
Date:   2002-12-28 22:24:50
From:   jasontm
Response to: Address in use

you need to use setsockopt() to set the SO_REUSEADDR option. that way the socket won't stay bound to a port after your program has terminated. Unix holds onto them by default just in case your program launches in the near future. there's a delay that you remove by setting SO_REUSEADDR. :)


use the mighty Google to find out more.. i'm too tired to launch into a tutorial. :P


good luck..


1 to 1 of 1
  1. Address in use
    2002-12-29 17:44:43  johnts [View]

1 to 1 of 1