59 Commits

Author SHA1 Message Date
David White
bc0273c41a attempt to fix crash bug when cancelling a download 2009-02-22 01:27:50 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Mark de Wever
dbda3f35cc Update doxygen comment style. 2008-10-30 16:37:06 +00:00
Pauli Nieminen
527a8f0486 Removed bandwidth monitor perprocessor test, It is now included allways 2008-09-03 01:22:52 +00:00
Mark de Wever
16a7a99749 Fix some compilation problems due to unused variable.
Send const std::string by reference instead of a copy.
2008-08-13 15:54:26 +00:00
Pauli Nieminen
6254675d84 Added network bandwidth usage statistics collection code for server 2008-08-13 13:02:22 +00:00
Pauli Nieminen
5a454f874d Added size output for campaign list too 2008-08-06 15:11:06 +00:00
Pauli Nieminen
34a8afecb0 Fixed server_manager to remove server connection from connection map 2008-06-30 10:43:51 +00:00
Pauli Nieminen
7c2e25f738 Implemented send_file to reduce memory usage when sending files 2008-05-28 20:31:44 +00:00
Pauli Nieminen
727294a4b5 campaignd:
* detect client connection mode and ue same for sending data

* made campaign server use gzip for storing addons

* added configuraion option to choose gzip compression level
2008-05-26 23:12:36 +00:00
Pauli Nieminen
14d199adbc Added restart command to server. It handles graceful restart of wesnoth server. 2008-05-08 12:02:24 +00:00
David White
9cd66a8cae added 'netstats' query command to wesnothd...
...to query for current network transfer info
2008-03-30 18:02:36 +00:00
David White
d2505473d0 new wesnothd implementation using simple_wml 2008-03-17 05:11:14 +00:00
David White
12da898f72 sharded network worker threads to reduce contention 2008-03-11 04:40:20 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Pauli Nieminen
e5c0ce6a54 Fixed some of networking code bugs 2008-01-24 16:04:58 +00:00
Gunter Labes
b63cbfd1ea force disconnects on server shut down 2007-12-19 23:12:54 +00:00
Gunter Labes
717766fd2e introduced a "ping_timeout" preference...
...to allow adjusting the default value from the preferences file

refactored check_timeout()

some more utils::string_bool() usage and whitespace fixes
2007-12-09 18:29:43 +00:00
Mark de Wever
7b12cffb91 Updated the network code to handle gzipped data instead of binary wml.
Nobody sends it yet, but the server can receive it, once the server
has been restarted there will be another commit to make the clients
send gzipped data to the server.

There's a config variable to change the server to send gzipped data as
well. On the trunk server this switch can be set once everybody had
some time to update their clients.

Once 1.3.12 is no longer allowed on the server this can also be set on
the 1.3 server. Once it's no longer allowed there the server will be
modified to only send gzipped data and the switch removed.

(The campaign server won't be modified at this moment.)

NOTE *campaign server and server need to be included
serialization/binary_or_text.cpp*
2007-12-08 17:42:36 +00:00
Mark de Wever
180681cf0a Removed the wrapper function network::queue_data() with network::send_data()
and fixed all callers.
2007-12-07 19:25:12 +00:00
Gunter Labes
9869b06731 typo fix 2007-11-20 09:56:13 +00:00
Gunter Labes
5434ce96d1 check whether a player is actually in the game before kicking/banning
remove an assert() on sending to an unknown socket, rather log and return
2007-10-19 02:12:08 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Hans Joachim Gurt
4af4f8ec27 doxygen, comments 2007-08-27 03:58:47 +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
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
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
3ad668e4f8 network threads are now created and destroyed when not enough/too much are available 2007-01-07 12:29:49 +00:00
Rusty Russell
71a60640dc Get rid of unused parameters to network::send_data 2006-05-12 03:24:09 +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
7dd2ebb8fe Fix multiplayer open_connection not working 2005-08-05 22:23:42 +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
András Salamon
cc1b0aecf0 add copyright notices (please change as appropriate), and deDOSify 2005-07-20 08:22:37 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Dave White
950bf581fe made connecting to a server show a dialog that allows the user to cancel,
rather than blocking
2005-06-02 23:10:55 +00:00
Yann Dirson
2f22b25e75 more include cleanup 2005-03-10 20:06:20 +00:00
Dave White
920f5b467d change to network code to make receives threaded;
changes to make the game compile on VC++
2005-02-26 22:16:34 +00:00
Guillaume Melquiond
a1a6bada6a NULL is not an integer,
...and trivial integer constants should be visible for compiler optimization.
2004-12-09 19:52:47 +00:00
Dave White
a242eede5a added experimental threading code 2004-10-11 23:46:44 +00:00
Dave White
aac88ce5cc added 'campaign server'...
...and capability to connect to the server to download campaigns
2004-09-12 21:55:21 +00:00
Dave White
825e5e9856 made hosting games work elegantly when wesnothd is running on the same machine 2004-08-28 04:51:51 +00:00
Dave White
b2c1ce5239 added new server commands to kick, ban, view status 2004-07-28 03:38:19 +00:00
Dave White
cefbd487ce improvements to make the server more stable 2004-06-22 16:10:38 +00:00
Dave White
f50ee653d3 made it so non-interactive mode works well with eras 2004-04-29 01:49:51 +00:00
Dave White
40e4b42aaa changes to network protocol to support framework for recovering connections 2004-04-13 18:27:45 +00:00
Dave White
5238dcc75a [[Game[lay fixes]]
- added randomization of temples in Muff Malal's peninsula
- made it so in MP games, players can receive labels and messages while it's their turn
- added patch to 'show possible enemy moves'
2004-04-05 19:29:23 +00:00
Dave White
4baca7de7f added in 'landform' setting to map generator 2004-03-27 20:31:43 +00:00
Dave White
00e44b11ea gave server 'max_packet_size' option to make it more efficient at dealing with multiple clients 2004-03-26 19:14:48 +00:00
uid68803
1ea1233dd7 fixed problem where after being disconnected from the server, ...
...players would be unable to reconnect without quitting the client
2004-02-02 16:51:56 +00:00