diff options
Diffstat (limited to 'src/shared/HTTPSender.cpp')
-rw-r--r-- | src/shared/HTTPSender.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shared/HTTPSender.cpp b/src/shared/HTTPSender.cpp index e5cd80dc..6d036989 100644 --- a/src/shared/HTTPSender.cpp +++ b/src/shared/HTTPSender.cpp @@ -1,15 +1,15 @@ /* This file is part of Ingen. * Copyright (C) 2008 Dave Robillard <http://drobilla.net> - * + * * Ingen is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -59,7 +59,7 @@ HTTPSender::HTTPSender() fprintf(stderr, "Error calling bind (%s)\n", strerror(errno)); _listen_sock = -1; } - + // Find port number socklen_t length = sizeof(addr); if (getsockname(_listen_sock, (struct sockaddr*)&addr, &length) == -1) { @@ -67,7 +67,7 @@ HTTPSender::HTTPSender() _listen_sock = -1; return; } - + if (listen(_listen_sock, 1) < 0 ) { cerr << "Error calling listen: %s" << strerror(errno) << endl; _listen_sock = -1; @@ -96,7 +96,7 @@ HTTPSender::_run() cerr << "Unable to open socket, exiting sender thread" << endl; return; } - + // Accept connection if ((_client_sock = accept(_listen_sock, NULL, NULL) ) < 0) { cerr << "Error calling accept: " << strerror(errno) << endl; @@ -139,7 +139,7 @@ HTTPSender::bundle_end() _mutex.unlock(); } - + void HTTPSender::send_chunk(const std::string& buf) { |