90 Commits

Author SHA1 Message Date
Gunter Labes
3bcaec35b1 minor program logic simplification 2007-12-28 20:00:25 +00:00
Gunter Labes
5c8b6d787f revised map: Hamlets 2007-12-22 12:40:39 +00:00
Gunter Labes
b63cbfd1ea force disconnects on server shut down 2007-12-19 23:12:54 +00:00
Mark de Wever
c2cf711c43 wassert -> assert 2007-12-12 21:59:34 +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
Gunter Labes
327b5cc4d9 check the timeout on all builds
wait for 1ms instead of 1s each iteration
2007-12-05 15:56:10 +00:00
Gunter Labes
316ac7b04e problem solved.. remove most of the old code again 2007-11-24 01:22:26 +00:00
Gunter Labes
ff1fecc7e6 bring old network code back for windows,
narrows the problem with the new code a bit down
2007-11-24 00:27:39 +00:00
Mark de Wever
e240e1a4e7 Fix a compilation bug on Windows (usleep not defined).
This fix is needed to make 1.3.11 compile under windows.
2007-11-19 18:43:45 +00:00
Gunter Labes
7476899bd5 put printing the data to send to where we still know...
...about the connection handle rather then the real socket
2007-11-19 02:04:50 +00:00
Gunter Labes
a450d9d3d2 remove unneeded include again 2007-11-18 13:24:27 +00:00
David White
09fd7fb2f9 fix to network code problems 2007-11-18 07:05:47 +00:00
David White
d5fcc2ab54 debug network problems 2007-11-18 05:59:39 +00:00
Gunter Labes
a282c965b4 proper logging 2007-11-18 00:46:53 +00:00
David White
cf0dbc80c5 attempt to fix network problem 2007-11-18 00:45:05 +00:00
David White
0e93c92ce4 attempt to fix network problem 2007-11-18 00:24:18 +00:00
Gunter Labes
cc2cf381d2 put logging of the data to be sent in a more appropriate place 2007-11-17 21:03:38 +00:00
David White
a345c4ab7c new network code to make the server not hung in receives 2007-11-17 19:25:12 +00:00
Gunter Labes
93c6f1c3c5 #include cleanup
finally handle the game name correctly (g->level()["name"] is only the
game name until the scenario is uploaded..)

remove const from the player_map pointer in the game class to make it
possible to mark players as available (all mark_available() calls can
probably go inside game now)

logging improvements
2007-11-12 00:23:38 +00:00
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