207 Commits

Author SHA1 Message Date
Chris Beck
f09d405629 cleanup previous two find and replace results
Just wanted to remove the empty strings that got created:

find . -type f -exec sed -i 's/<< "" <</<</g' '{}' \;

find . -type f -exec sed -i 's/<<"" <</<</g' '{}' \;

I also unstaged tools/schema/tags.cpp, since I don't think I changed
that.
2014-05-20 15:54:16 -04:00
Chris Beck
3c9844889b Make sure all error logs flush with std::endl, so we get on travis.
This is the result of running this command in directory src/

find . -type f -exec sed -i 's/\(ERR.*\)\\n\"\;/\1\" << std::endl\;/g' '{}' \;

and carefully inspecting the results.
2014-05-20 15:37:52 -04:00
Mark de Wever
11001bc8dd Remove BeOS support.
It is unknown whether the platform still works with the current Wesnoth
code. To ease the SDL 2.0 transition support is removed. If a maintaine
steps up support can be added again.
2014-03-08 14:39:54 +01:00
Mark de Wever
2ab7d78cdf Remove AmigaOS support.
It is unknown whether the platform still works with the current Wesnoth
code. To ease the SDL 2.0 transition support is removed. If a maintainer
steps up support can be added again.
2014-03-08 14:10:49 +01:00
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
gfgtdf
f76f8681b0 fixing a msvc network bug.
on visual sudio 2010 errno and EWOULDBLOCK are both defined, but don't work properly. So i changed the code into using WSAGetLastError over errno if available.
2013-11-12 02:03:20 +01:00
Eric S. Raymond
043c4f9fd3 Remove $Id$ cookies. 2013-03-26 21:41:37 -04:00
Mark de Wever
43b71f2ff0 New year copyright update. 2013-01-01 09:22:03 +00:00
Sergey Popov
136f42bd4f Fix bug #20205
Malformed data caused config::error exception to be thrown.

Unfortunately campaignd on catching such an exception had no way to
close the right connection, instead all connections were closed because
the local variable that was supposed to contain connection number wasn't
updated. This is fixed by using boost.exception to attach the necessary
data to config::error objects so it can be used at the catch site.
2012-10-04 02:23:15 +00:00
Ignacio R. Morelle
810b63cad5 Handle boost::iostreams::gzip_error in the SDL_net-based network layer
(part of bug #20205)

The exception in question originated from the read_gz() call and caused
the entire process to abort because of a non-fatal issue occurring in a
secondary thread.

First spotted in campaignd. See the bug report for details.
2012-09-29 00:23:01 +00:00
Mark de Wever
a7572ddf3d Remove a useless cast.
Detected by the upcoming gcc-4.8.
2012-08-25 16:14:51 +00:00
Mark de Wever
7b84e2865c Remove a useless cast.
Detected by the upcoming gcc-4.8.
2012-08-25 16:14:49 +00:00
Mark de Wever
0a18a61d02 Comment out unused code.
The caller is commented out as well so keep the code in case it will be
uncommented later.
2012-06-30 19:09:34 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Alexander van Gessel
a2e3b19256 Revert 2011-11-21T04:32:39Z!ai0867@gmail.com.
This restores the race between error messages and disconnections.
2011-11-21 22:28:47 +01:00
Alexander van Gessel
fcb260ad95 Flush buffers when closing a funtioning socket.
This fixes a race between error messages and disconnections.
2011-11-21 05:32:39 +01:00
Mark de Wever
bb51354198 Remove an old-style-cast. 2011-10-21 18:59:25 +00:00
Sergey Popov
732f4eb43a Fixed a gcc warning about strict aliasing rules breakage...
...introduced by 2011-09-10T16:13:22Z!koraq@xs4all.nl
2011-09-10 22:17:32 +00:00
Mark de Wever
ed85e86e77 Fixed compilation on all Debian architectures.
The #undef was introduced in 2010-10-31T09:00:17Z!guillaume.melquiond@gmail.com, but the commit offers no reason
_why_ the macro was undefined. This patch has been tested by Rhonda on
all Debian architectures and there it caused no build problem, whereas
the 2010-10-31T09:00:17Z!guillaume.melquiond@gmail.com caused several architectures failing to build.

The reason the issue was spotted much later is that before Debian
compiled with the ANA network. It switched to the older network code
while changing the build system from autotools to cmake, so the latter
was thought to be the cause.

Fixes Debian bug #636193 and reverts 2010-10-31T09:00:17Z!guillaume.melquiond@gmail.com.
2011-09-10 16:13:22 +00:00
Mark de Wever
98e3c08f53 Fixes compilation on kfreebsd.
Fixes debian bug #626313. Thanks to Rhonda for testing the patch.
2011-06-16 17:58:03 +00:00
Anonymissimus
202890d24c fixed a gcc warning about () suggested around && in || 2011-06-03 21:34:47 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Alexander van Gessel
91428469b4 Remove a binary WML check 2010-11-19 12:55:53 +01:00
Alexander van Gessel
31d5fe3c3b Remove usage of binary_wml 2010-11-18 22:20:56 +01:00
Alexander van Gessel
9a508b5730 Remove the 'gzipped' parameters from the network API.
ANA did not even implement binary WML.
2010-11-17 00:28:08 +01:00
Guillaume Melquiond
46dba2216f Avoided SDL macro. 2010-10-31 09:00:17 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Ali El Gariani
c7c222380d Clean the use of @todo for Doxygen
Use ///@todo bla   or  /** @todo bla */ 
with lowercase and no colon after todo
2010-07-26 00:31:55 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Mark de Wever
29ae8bf5de Remove an unneeded include. 2009-11-27 23:00:41 +00:00
Gunter Labes
238954f0c2 removed the NOATIME flag that is probably not useful...
...and not available on some (older) systems

fixes bug #14446: Cannot compile on Linux 2.4
2009-10-06 19:06:02 +00:00
Mark de Wever
9680e5e43d Fix gcc 4.4 compilation errors.
Fixes Debian bug #539546, after fixing the reported issue fixed more
problems discovered by gcc 4.4.
2009-08-11 18:52:49 +00:00
Tomasz Śniatowski
eb3f0cd9e2 fix windows wesnothd infinite loop issue 2009-06-28 01:10:44 +01:00
Tomasz Śniatowski
7c44587eb1 revert the networking changes from 2009-05-18T15:39:34Z!kailoran@gmail.com and 2009-05-18T20:13:20Z!kailoran@gmail.com 2009-06-27 18:31:11 +01:00
Gunter Labes
1651550b41 tweaked an error message 2009-05-19 19:02:05 +00:00
Tomasz Śniatowski
97a8e86add in receive_with_timeout, assume an error is fatal...
...when no platform-specific checks are available
2009-05-18 22:01:02 +01:00
Tomasz Śniatowski
e18cf1b8fe add win32-specific error check...
...to receive_with_timeout instead of ignroing the error
2009-05-18 21:13:54 +01:00
Tomasz Śniatowski
45b7691bec remove unused code in send_buffer 2009-05-18 21:13:20 +01:00
Tomasz Śniatowski
3fdfcef63a Fix a networking problem when trying to send data to a disconnected socket
According to SDL docs, SDLNet_TCP_Send is blocking and if the returned
nubmer of bytes sent is less than expected, it's an error. Previous code
could trigger an infinite loop with the function returning zero and our
loop trying to send again and again.
2009-05-18 16:39:34 +01:00
Guillaume Melquiond
789736ac91 Removed specialized domains from log.hpp,
...so that adding a new domain no longer forces to recompile the whole
game.
2009-04-24 23:18:31 +00:00
Mark de Wever
f6b3368aac Strip trailing whitespace. 2009-03-15 16:50:42 +00:00
Guillaume Melquiond
77f33d2270 Added proper detection of round and sendfile. 2009-03-10 13:07:19 +00:00
Mark de Wever
4e7035b5ee Align all network buffers on 4 bytes.
Just to make sure we won't get another SIGBUS on the Sparc.
2009-03-01 07:43:22 +00:00
Tomasz Śniatowski
8f6c11821a fix two more issues contributing to bug #13059:
* made the network code use two separate timeouts, an idle timeout
  that is reset each time data is received, and a total wait counter
  (that was already there),

* fixed a rather unpleasant milli-/microsecond confusion
2009-02-26 21:49:06 +01:00
Tomasz Śniatowski
42c7a323f2 fix add-on networking issue in windows...
...(and possibly other platforms using select) (bug #13059)
2009-02-25 23:14:16 +01:00
Tomasz Śniatowski
6faf092d0a don't define NOMINMAX in win32...
...if it's already defined earlier because GCC complains
2009-02-24 18:49:55 +01:00
Tomasz Śniatowski
f8ac880767 fix compilation error on win32 (hello stupid min/max macros in windows.h) 2009-02-22 16:29:31 +01:00
Guillaume Melquiond
99a9556fba Removed now unused parameter. 2009-02-22 12:19:57 +00:00
Gunter Labes
5f31d9a62f fix a warning and a debug message 2009-02-22 04:25:25 +00:00
David White
bc0273c41a attempt to fix crash bug when cancelling a download 2009-02-22 01:27:50 +00:00