[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bind_socket uses SO_REUSEADDR
[Thread Prev] | [Thread Next]
- Subject: bind_socket uses SO_REUSEADDR
- From: Игорь Коваленко <igor.a.kovalenko@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 23 Jun 2017 08:53:26 +0000
- To: "libssh@xxxxxxxxxx" <libssh@xxxxxxxxxx>
Hello! I'm developing an ssh server and I came to the following problem. In bind_socket functional hard coded using SO_REUSEADDR socket option. Why is that so? Because of that it is possible to start two servers on the same port which I don't need. What alternatives do I have? I see the following: - to add new SSH_BIND_OPTIONS_REUSEADDR or something like that (but I need to change libssh for that) - to use ssh_bind_set_fd with a socket created by myself - something else?
Re: bind_socket uses SO_REUSEADDR | Aris Adamantiadis <aris@xxxxxxxxxxxx> |