rr_tcp_listener_new connection.
Francis Brosnan Blázquez <[email protected]> 02 Dec 2002 14:04:49 +0100
| Newsgroups | gmane.network.beep.roadrunner.general |
|---|---|
| Organization | Advanced Software Production Line, S.L. |
| Message-ID | <[email protected]> |
Hi.
I'm trying to develop a server using Road Runner but when I run
simple-server test it only accepts inbound connections from localhost.
So, I started to determine what this code really does and finaly I have
found the following line in rr_tcp_listener_new function:
/* saddr.sin_addr.s_addr = INADDR_ANY; */
memcpy(&saddr.sin_addr, haddr, sizeof(struct in_addr));
Therefore, the simple-server will only accept inbound connections from
"haddr" and in this case "localhost".
Why does road runner do this? and how can I make a server that accept
inbound connections from anywhere?
Thanks a lot.
Regards.
--
Francis Brosnan Blázquez <[email protected]>
Advanced Software Production Line, S.L.