ircd/listener: un-obsoleteify comments
This commit is contained in:
parent
045d9d31c2
commit
bf3ecca24b
1 changed files with 3 additions and 5 deletions
|
@ -223,6 +223,8 @@ inetport(struct Listener *listener)
|
||||||
/*
|
/*
|
||||||
* XXX - we don't want to do all this crap for a listener
|
* XXX - we don't want to do all this crap for a listener
|
||||||
* set_sock_opts(listener);
|
* set_sock_opts(listener);
|
||||||
|
*
|
||||||
|
* FIXME - doesn't this belong in librb? --Elizafox
|
||||||
*/
|
*/
|
||||||
if(setsockopt(rb_get_fd(F), SOL_SOCKET, SO_REUSEADDR, (char *) &opt, sizeof(opt)))
|
if(setsockopt(rb_get_fd(F), SOL_SOCKET, SO_REUSEADDR, (char *) &opt, sizeof(opt)))
|
||||||
{
|
{
|
||||||
|
@ -236,11 +238,7 @@ inetport(struct Listener *listener)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* FIXME - doesn't this belong in librb? --Elizafox */
|
||||||
* Bind a port to listen for new connections if port is non-null,
|
|
||||||
* else assume it is already open and try get something from it.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if(bind(rb_get_fd(F), (struct sockaddr *) &listener->addr, GET_SS_LEN(&listener->addr)))
|
if(bind(rb_get_fd(F), (struct sockaddr *) &listener->addr, GET_SS_LEN(&listener->addr)))
|
||||||
{
|
{
|
||||||
errstr = strerror(rb_get_sockerr(F));
|
errstr = strerror(rb_get_sockerr(F));
|
||||||
|
|
Loading…
Reference in a new issue