Commit Graph

38 Commits (3254155930feb807f81031ebfdc9acedbe33745e)

Author SHA1 Message Date
tron 2b27073156 (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular 18 years ago
tron 50cfa9403d (svn r5294) -Fix: Plug a memory leak 18 years ago
tron 670e47eec3 (svn r5293) -Fix: Not all network interfaces are capable of broadcasting. Don't record those which aren't
-Fix: Not all networks are /24. Generate proper broadcast addresses for non-/24 nets
18 years ago
tron 74d40ced0a (svn r5265) Replace a dozen bogus uses of strncmp() by strcmp() 18 years ago
tron c9580160b2 (svn r4416) Remove a pointless buffer copy and use strlcpy() instead of snprintf("%s") 18 years ago
truelight 4a4b860ee7 (svn r4413) -Fix: fixed a bug which pushed the client back to the main menu when a
server is in the mainserver-list which sends out illegal signals. Many
tnx to 'test' for finding and isolating the problem.
-Fix: also specify the problem a bit better
18 years ago
Darkvater a39f69b9bd (svn r4291) - Fix: validate all received strings for correctness. This fixes potential crashes on invalid clients/servers (thanks test for bringing this to our attention) 19 years ago
Darkvater f2448ebfd4 (svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking. 19 years ago
Darkvater 2b287a9e72 (svn r3429) - Feature (Followup): Change the gamelist window to accomodate for the new information. 19 years ago
Darkvater 78fa9c7393 (svn r3427) - Feature: Allow seeing and setting the maximum amount of companies and spectators for a server. This can be changed/viewed during runtime as well in the console. 19 years ago
peter1138 e78997fdfd (svn r3409) - Change the server advertisement interval to use the frame counter instead
of game days. This allows a paused server to continue to advertise itself.
  This also fixes advertising for games that start before 1922.
19 years ago
tron e272b03fee (svn r3365) Staticise 36 functions 19 years ago
tron c11fb56bf7 (svn r3337) Remove an unused variable and add 2 times static 19 years ago
Darkvater 0f41b99c5e (svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
- CodeChange: added str_validate(char *str) function that checks if a string contains only printable characters and if not, replaces those characters by question marks. Also move IsValidAsciiChar() to string.h
19 years ago
truelight 60882b29c8 (svn r3053) -Fix: [ 1326604 ] Fixed typo and hang for BeOS Networking (MYOB) 19 years ago
bjarni 2b44da199c (svn r3023) -Fix [BeOS] fixed compilation on BeOS R5 (MYOB) 19 years ago
tron a227065ab7 (svn r2701) Insert Id tags into all source files 19 years ago
tron 284d9ed7fb (svn r2663) Include variables.h only in these files which need it, not globally via openttd.h 19 years ago
truelight 143dd26ef5 (svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made Darkvater go crazy ;)) 19 years ago
tron 1afad51ee2 (svn r1847) Adjustment for MorphOS to unbreak the build there and removal of some now obsolete preprocessor magic 20 years ago
tron eed181245d (svn r1833) byte -> char transition: the rest 20 years ago
tron b2ae5b197e (svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics 20 years ago
tron f0f85a7ef3 (svn r1803) Move debugging stuff into files of it's own 20 years ago
truelight f84607af52 (svn r1689) -Fix: big typo in network_udp.c, the company-password flag didn't work 20 years ago
tron 3279a7c9a2 (svn r1520) Trim 134 (!) lines with trailing whitespace ): 20 years ago
truelight e9a57c56b7 (svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
- Added green dot if company income is positive (else red dot)
 - Added lock icon if company is password protected
20 years ago
truelight 4873c0b1ea (svn r1483) -Fix: don't close a socket if it is already closed (windows doesn't like
it :() (partly tnx to tamlin)
20 years ago
truelight 523a6a1cff (svn r1389) -Add: [Network] Added packet protection. No longer a client or server
reads beyond the size of the packet
-Fix: [Network] A server no longer crashes when a client sends an 
invalid DoCommand, but drops the client instead.
20 years ago
tron 6c4840fa50 (svn r1331) Update map size before sending game info 20 years ago
truelight c5cca49117 (svn r1276) -Fix: [Network] Bug in bind system. Advertising failed on systems with
more then 1 ip, and server_bind active to one of them.
20 years ago
truelight d66adc937d (svn r1228) -Add: [Network] When a server normally shuts down, it removed itself
from the server-list
20 years ago
truelight 90b2b2144b (svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)
-Fix: UDPListener was launched wrongly
-Fix: Not all sockets have broadcast enabled anymore
-Fix: Server-advertise retries 3 times before giving up
20 years ago
dominik 7cfaa8a418 (svn r1194) Feature: You can now add and remove servers from the server list. Those will be remembered until you delete them by pressing the Delete key. 20 years ago
truelight 0e19f74c16 (svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
and 'void' where needed, prefixed all functions, typedefs and global 
vars with 'Network' and organized all externals nicely.
20 years ago
truelight 015fb81810 (svn r1106) -Add: [Network] Added master-server protocol and advertise to
master-server option. No GUI yet, and disabled by default (it still is WIP)
20 years ago
truelight db6a545203 (svn r1069) -Add: [Network] Added UDP-packet for detail info about a server for
upcoming server-listing
20 years ago
truelight 9ced62e239 (svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port'
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use 
scripts/pre_dedicated.scr)
20 years ago
truelight b8f6d41418 (svn r942) -Merged branch/network back into the trunk 20 years ago