Gunter Labes
63fa08b7ba
* typo fixes
2007-11-03 09:11:52 +00:00
Gunter Labes
c2a6fdad58
more updates considering the new 'debug' log level
2007-11-02 03:43:26 +00:00
Jérémy Rosen
b904378a22
second attempt at restoring network stats
2007-10-27 21:18:23 +00:00
Gunter Labes
8d33f92e4f
properly implement 2007-04-21T16:02:49Z!jeremy.rosen@enst-bretagne.fr
...
(don't access an iterator we just invalidated)
2007-10-20 02:26:56 +00:00
Gunter Labes
ae9e10f260
codeclean run
...
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Mark de Wever
080eb69f60
Updated the headers to state GPL 2+ and a few changelog cleanups.
2007-08-15 13:41:56 +00:00
Mark de Wever
badabe330f
small cleanup of unused variables and functions which Ivanovic found
2007-07-21 20:25:53 +00:00
Mark de Wever
bb01934b85
A rather large update which updates the copyright info
...
* Wesnoth is distributed under the terms of the GPL version 2, made
that more explicit
* updated the copyright range to 2007
* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Jérémy Rosen
ea12c80a68
attempt to fix log flooding (and maybe freeze) in mp games
2007-04-21 16:02:49 +00:00
Jérémy Rosen
d08d4f536c
fix crash when uncompressing improper WML in network code
2007-04-06 20:47:27 +00:00
David Philippi
f231fb12e0
merged patch #714 by silene
...
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
Jérémy Rosen
8dd1ac1050
push WML compression to the helper thread,
...
also remove spurious thread creation
2007-03-23 19:26:19 +00:00
Jérémy Rosen
3f7f8c366b
allow an easy way to fix an upper limit to the number of threads used,
...
...limit is 1 for client and unlimited for wesnothd and
campaignd. limits for the servers can be set via CLI
2007-02-02 22:09:12 +00:00
Jérémy Rosen
623adc5b27
better handling of network threads dying
2007-01-08 20:20:03 +00:00
Jérémy Rosen
3ad668e4f8
network threads are now created and destroyed when not enough/too much are available
2007-01-07 12:29:49 +00:00
Jérémy Rosen
9bc7cdf23f
attempt to fix network code,
...
please test on campaignd and revert if it doesn't fix the problem
2006-12-18 22:54:03 +00:00
Benoît Timbert
e5b3a94555
AmigaOS4 support by afxgroup (patch #564 )
...
(same as 12503 for 1.2)
2006-07-11 21:02:54 +00:00
Patrick Parker
a7671a2adb
Loadscreen Progressbar:
...
added inner spacing for border and changed colors to wesnoth theme as
requested by Eleazar
(http://www.wesnoth.org/forum/viewtopic.php?t=10971 )
Also: Minor fix for compilation warning of template re-instantiation
2006-04-23 22:45:33 +00:00
Rusty Russell
e2feadfc86
Warning fixes:
...
not complete, but I stopped pulling the thread before the whole
project unravelled 8)
(1) team and player numbers should be unsigned.
(2) sizes of gui elements should usually be unsigned.
This probably introduced some bugs.
2006-01-24 01:17:58 +00:00
Jon Daniel
00ff767601
Fix missing initializer warning
2006-01-15 08:37:06 +00:00
David White
8466d33a37
fixed problem where disconnecting a socket could cause the server to hang
2005-10-16 00:21:44 +00:00
Jon Daniel
7e127f2780
don't use EAGAIN in case it is defined for socket calls in BeOS
2005-09-17 20:52:23 +00:00
Jon Daniel
6f0580e472
Workaround what seems to be a bug in SDL or BeOS acquire_sem...
...
...which caused lobby connection to terminate because the semaphore
could not be acquired and SDL_CondWaitTimeout returns -1
2005-09-15 23:33:42 +00:00
Jon Daniel
9d39fce2d2
Another attempt to fix BeOS send
2005-09-13 19:21:10 +00:00
Jon Daniel
b37ed665b3
Fix BeOS send_buf()
2005-09-13 18:26:23 +00:00
Jon Daniel
460c2f2bd0
forgot a one
2005-09-06 17:16:04 +00:00
Jon Daniel
8e93a64364
Use select for win32
...
this way we don't have to define any HAVE_FOOBAR_H for windows
2005-09-06 17:10:15 +00:00
András Salamon
eb6805d96a
codeclean
2005-09-06 13:53:14 +00:00
Jon Daniel
26d50806e1
use poll/select in receive_buf isntead of CheckSockets
2005-09-05 20:28:28 +00:00
Jon Daniel
c19bd5cf0e
add select fallback if poll is not available
2005-09-05 19:46:04 +00:00
Jon Daniel
64c92fc22d
Added poll support to the send code
2005-09-05 16:43:54 +00:00
Dave White
6702a9c129
made error check slightly more thorough in networking code
2005-09-05 13:51:15 +00:00
Dave White
c04984c3b9
fixed bug where the program could freeze up when networked
...
-- happened especially on windows
2005-09-04 03:35:32 +00:00
Jon Daniel
33fe7d8a6b
remove bytes_to_send == res check.
...
It seems to cause trouble with mini campaign game creation.
2005-08-19 15:31:50 +00:00
Jon Daniel
a62bc00107
make send non-blocking aware
2005-08-18 17:39:36 +00:00
Jon Daniel
7b4152fe86
Use non-blocking IO for TCP sockets...
...
...in order to be able to receive more then 1 byte at a time while
still being able to cancel a receive.
2005-08-17 20:37:20 +00:00
Jon Daniel
8ae764677e
use errno to get a more meaningful message...
...
...in case SDLNet_CheckSockets returns -1
2005-08-07 12:49:08 +00:00
Jon Daniel
4d9652f8b2
small changes to receive_buf
2005-08-06 10:03:34 +00:00
Jon Daniel
2632c1cbbe
Remove unused variable
2005-08-05 21:54:00 +00:00
Jon Daniel
86b3dd06e4
Improved socket statistics with separate send and receive stats for each socket
2005-08-05 21:53:03 +00:00
Jon Daniel
166e87d053
Fix some spelling in a comment
2005-08-05 13:13:30 +00:00
Jon Daniel
352af9d571
Fix receive_buf to receive only one byte at a time...
...
,,,so we can check with timeout if there was an error
timeout should be 15s now.
2005-08-05 13:00:58 +00:00
Jon Daniel
1da2a02a62
fix send stats
2005-08-04 22:47:58 +00:00
Jon Daniel
8375b7da50
Factor send_buf code.
2005-08-04 22:43:19 +00:00
Jon Daniel
c48523d3bf
Fix send and receives not being stopped...
...
...when trying to close a socket which caused it wait until everything
is finished.
2005-08-04 22:05:12 +00:00
András Salamon
cc1b0aecf0
add copyright notices (please change as appropriate), and deDOSify
2005-07-20 08:22:37 +00:00
Dave White
ae70ea1435
attempt to fix assertion failure in network_worker.cpp
2005-06-14 22:56:35 +00:00
András Salamon
8bd9bc98a5
ran codeclean against files
2005-06-04 19:16:06 +00:00
Philippe Plantier
ba195ecd8a
[[Attack some problems with data serialization in saves]]
...
* Made serialized data be saved as untranslated. To achieve this, added the
t_string class, which encapsulates a translatable string.
* Completely rewrote the (text) WML parser, making it use a tokenizer / parser
architecture. The parser is now much more strict and validates a WML grammar.
- Change to the WML syntax: pluses are now ignored, spaces are now forbidden
in WML keys
* Rewrote the way the variables are interpolated. There is no more default
interpolation, however, the vconfig class was added, which provides a
variable-interpolating proxy to config objects.
* There is still an important known bug: this is impossible to load textmode
save games now, because the statistics module saves some WML with spaces in
keys, which the parser refuses. I am commiting anyway to respect the string
freeze; the fix for this bug will come tomorrow
Hoping I do not break everything...
2005-03-27 23:06:17 +00:00
Guillaume Melquiond
d501297a65
Switch to the new logging macro.
2005-03-26 17:10:32 +00:00