truelight
bc5d3ef3b0
(svn r8631) -Add: added parameter -l ip[:port] to ./openttd, which redirects DEBUG() to a remote connection over TCP
...
For example, launch on 192.168.0.1 with, say, netcat a listener: netcat -l -p 3982
Launch OpenTTD on a remote host (say, PSP): ./openttd -l 192.168.0.1 -d9
And you get all debug information on 192.168.0.1. Very useful for debugging Portable systems.
2007-02-08 12:27:53 +00:00
rubidium
2f249e650b
(svn r8546) -Codechange: add a seperate (wrapper) functions to send/receive booleans.
2007-02-02 23:16:58 +00:00
rubidium
e50cc1ae49
(svn r8544) -Codechange: move game list related function/struct declarations to network_gamelist.h
2007-02-02 21:32:58 +00:00
rubidium
fe996cb13d
(svn r8543) -Codechange: make a real difference between querying the server via UDP and TCP.
2007-02-02 21:04:50 +00:00
rubidium
6fd39ebb7c
(svn r8542) -Codechange (Fix?): tweak the gamelist requery timeout so more servers are found for slow network connections.
2007-02-02 20:57:03 +00:00
rubidium
922a623402
(svn r8525) -Codechange: make NetworkSend_Packet(s) and NetworkRecv_Packet functions of NetworkTCPSocketHandler.
2007-02-01 23:50:15 +00:00
rubidium
105cd53868
(svn r8523) -Codechange: move all the Network(Recv|Send)_(uintXX|string) functions to Packet.
2007-02-01 23:26:44 +00:00
rubidium
51c2af6e5e
(svn r8521) -Codechange: initial step in converting Packet to a class; make and use constructors and functions related to the reading/saving the packet size.
2007-02-01 22:30:35 +00:00
rubidium
752ca4ebf7
(svn r8520) -Fix/Feature: requery gameservers that did not respond to their first query.
2007-02-01 21:04:40 +00:00
rubidium
2a9851a3ad
(svn r8511) -Codechange: make WindowClass an enumerated value.
2007-02-01 15:49:12 +00:00
KUDr
02f17406b1
(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
...
-Codechange: 'typedef struct Packet' changed to 'struct Packet'
2007-01-31 09:51:22 +00:00
rubidium
6787514d62
(svn r8461) -Feature: check for NewGRF compatability before actually downloading the map from a game server when connecting from the command prompt and internal console.
2007-01-30 17:22:56 +00:00
rubidium
cd6a826ecf
(svn r8459) -Codechange: move (Send|Recv)GRFIdentifier to NetworkSocketHandler, so it can also be used the TCP socket handler.
2007-01-30 17:12:46 +00:00
rubidium
f78d463f07
(svn r8446) -Fix (8445): accidentally made a function that should not be abstract abstract.
2007-01-28 20:54:30 +00:00
rubidium
66f46b71a1
(svn r8445) -Cleanup: remove some @params from comments as the parameters did not exist anymore and add comments to several variables/functions.
2007-01-28 20:47:25 +00:00
rubidium
3e6bd9c2e9
(svn r8437) -Codechange: move often duplicated (in MSU) define to the udp header.
2007-01-28 13:07:24 +00:00
Darkvater
2ff4492abc
(svn r8428) -Codechange: Add proper names to aircraft subtypes instead of magic numbers and add a function IsNormalAircraft() which tells us whether the aircraft is in fact some flying device or a rotor/shadow.
2007-01-27 12:29:55 +00:00
truelight
ef37b30674
(svn r8411) [MorphOS] -Fix: tons of unneeded warnings in networking code, because MorphOS wants UBYTE arrays and we use char arrays. Solution is a bit hackish.
2007-01-26 08:27:59 +00:00
rubidium
89865658b1
(svn r8372) -Fix (8361): NUM_LANDSCAPE comes (via some detour) from openttd.h, which does not exist in the masterserver/updater.
2007-01-23 14:47:38 +00:00
rubidium
daeadd9a0e
(svn r8361) -Codechange: make sure the range of the dates coming from the network are valid in OpenTTD
...
-Codechange: use_password is a boolean variable
-Codechange: move range checking for server_lang and map_set to Recv_NetworkGameInfo
2007-01-22 21:38:16 +00:00
rubidium
a93eb4b8d8
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
2007-01-21 17:29:38 +00:00
rubidium
e3b79e5ecc
(svn r8198) -Codechange: two global variables are not needed when network is disabled.
2007-01-17 19:55:18 +00:00
rubidium
3ce83d41fa
(svn r8171) -Fix (FS#556): return SL_ERROR when unthreaded saves failed, to make sure we do not try to send zero-byte savegames.
2007-01-17 00:01:55 +00:00
Darkvater
4b3cbf1a14
(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
2007-01-16 23:01:06 +00:00
rubidium
5696dfef94
(svn r8167) -Fix (FS#556): a network client crashes, due to a division by zero, when the connection gets lost at the right moment or when the packet is malformed (server sends size 0 for the map).
2007-01-16 22:56:18 +00:00
peter1138
13da8502c0
(svn r8129) -Codechange: Change data tables to use split off palette map. And
...
include a file missed last time...
2007-01-14 19:59:25 +00:00
rubidium
17208a97a9
(svn r8118) -Codechange: change the ordering of the network list a little:
...
- servers we have information about go above servers we do not have information about.
- servers that are version compatible go above servers we are not version compatible with.
- servers we have all required NewGRFs for go above servers we miss NewGRFs for.
- unpassworded servers go above passworded servers.
2007-01-14 16:44:52 +00:00
tron
e043c6cef7
(svn r8097) Replace strlen() {==,!=,>} 0 by the more concise {,!}StrEmpty(). Additionally the test takes O(1) instead of O(n) now
2007-01-13 15:00:16 +00:00
rubidium
98e462e564
(svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState.
2007-01-12 20:19:49 +00:00
rubidium
cf01dc9b16
(svn r8078) -Codechange: rewrite UDP part of the network code to make use classes. This is only one of the many steps to really cleanup the network code.
2007-01-12 14:30:01 +00:00
KUDr
28e969924b
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00
rubidium
13c922d8e4
(svn r8000) -Codechange: drop UDP packets when their internal size does not match the received size. If that is the case, the packet was not received in one piece (or got somehow mangled with another packet), which will cause us to drop the packet later on because we are (for example) trying to read beyond the end of the packet.
2007-01-09 14:48:21 +00:00
Darkvater
35ea3335ce
(svn r7984) -Fix: out-of-bounds read access on _clients array (Quark)
2007-01-08 19:18:53 +00:00
rubidium
acdeae8cc8
(svn r7932) -Fix (r7931): committed a few files too much :( (the ones I used to test the new masterserver)
2007-01-06 23:00:21 +00:00
rubidium
2a596e09f1
(svn r7931) -Fix (r7759): multiple (different) -O flags made compilations with the wrong optimisations.
2007-01-06 22:58:01 +00:00
rubidium
3f3af614a4
(svn r7888) -Change: add documentation about the 'on-the-wire' structure of the network game information request and reply packets.
2007-01-05 21:33:58 +00:00
truelight
82efaa7469
(svn r7882) -Fix: OS2 is defined as UNIX too, but not for networking
2007-01-05 18:03:30 +00:00
rubidium
5e4c157282
(svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly.
2007-01-05 01:23:03 +00:00
rubidium
e534f747b5
(svn r7836) -Codechange: some constness for network/core.
2007-01-04 21:48:52 +00:00
rubidium
2a2020c34c
(svn r7834) -Codechange: cleanup the includes of network/core a little; include headers in headers when the header needs types/constants defined in them.
2007-01-04 21:21:14 +00:00
rubidium
35b7e0a1b8
(svn r7833) -Fix (r7829): forgot to add debug.h to the includes.
2007-01-04 20:33:50 +00:00
rubidium
5e276359a4
(svn r7830) -Codechange: let NetworkCoreInitialize return a bool, so we have to set _network_available only once.
2007-01-04 19:12:45 +00:00
rubidium
b722317116
(svn r7829) -Codechange: move the network (core) initialization/shutdown functions into network/core, so the can be reused in the masterserver_updater.
2007-01-04 18:50:40 +00:00
rubidium
72b2b15cbd
(svn r7825) -Codechange: make NetworkUDPClose close a single UDP socket. Use NetworkUDPStop to close all opened udp sockets (those were called NetworkUDPClose).
2007-01-04 18:10:40 +00:00
rubidium
81235fc16b
(svn r7821) -Fix: be more strict about the socket from where packets arrive. Do not accept requests about the game server on the master/client socket, do not accept master server acks on the client/server socket, etc.
2007-01-04 15:42:09 +00:00
rubidium
525118c7b3
(svn r7818) -Fix (r7751): wrote some data to the wrong network packet.
2007-01-04 02:18:04 +00:00
bjarni
9db571c6db
(svn r7767) -Fix r7751: [OSX] nameclash in includes. ALIGN was defined in both a library and macros.h
...
we undefines the library one since we don't need that one anyway
2007-01-02 21:27:28 +00:00
rubidium
013df98f79
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
2007-01-02 19:19:48 +00:00