[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, ipv6, updated. release_0_8_9_final-14
From: |
Rob Savoye |
Subject: |
[Gnash-commit] [SCM] Gnash branch, ipv6, updated. release_0_8_9_final-1462-g0c72d2d |
Date: |
Sat, 14 Apr 2012 14:05:29 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, ipv6 has been updated
via 0c72d2d84b6fbb9aa4551c3d515368b03951de65 (commit)
from e2a526bcb3a00f42a30396b049e2dbbc3b13bc34 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=0c72d2d84b6fbb9aa4551c3d515368b03951de65
commit 0c72d2d84b6fbb9aa4551c3d515368b03951de65
Author: Rob Savoye <address@hidden>
Date: Sat Apr 14 08:05:20 2012 -0600
specify the port to use for the server.
diff --git a/cygnal/libnet/network.cpp b/cygnal/libnet/network.cpp
index 2446f5c..00fd0cf 100644
--- a/cygnal/libnet/network.cpp
+++ b/cygnal/libnet/network.cpp
@@ -176,7 +176,10 @@ Network::createServer(std::string hostname, short port)
req.ai_socktype = SOCK_STREAM;
req.ai_protocol = 0; // default is tcp
- if ((code = getaddrinfo(hostname.c_str(), 0, &req, &ans)) != 0) {
+ std::stringstream portstr;
+ portstr << port;
+ if ((code = getaddrinfo(hostname.c_str(), portstr.str().c_str(),
+ &req, &ans)) != 0) {
log_error(_("getaddrinfo() failed with code: #%d - %s\n"),
code, gai_strerror(code));
freeaddrinfo(ans); // free the response data
-----------------------------------------------------------------------
Summary of changes:
cygnal/libnet/network.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, ipv6, updated. release_0_8_9_final-1462-g0c72d2d,
Rob Savoye <=