summaryrefslogtreecommitdiff
path: root/network_udp.c
AgeCommit message (Collapse)Author
2006-10-12(svn r6750) -Codechange: Juggle around some header includes as they're only ↵Darkvater
used when networking is enabled.
2006-08-22(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-20(svn r5999) -Feature: change the original date format to a 32 bits format ↵rubidium
based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-17(svn r5294) -Fix: Plug a memory leaktron
2006-06-17(svn r5293) -Fix: Not all network interfaces are capable of broadcasting. ↵tron
Don't record those which aren't -Fix: Not all networks are /24. Generate proper broadcast addresses for non-/24 nets
2006-06-14(svn r5265) Replace a dozen bogus uses of strncmp() by strcmp()tron
2006-04-14(svn r4416) Remove a pointless buffer copy and use strlcpy() instead of ↵tron
snprintf("%s")
2006-04-14(svn r4413) -Fix: fixed a bug which pushed the client back to the main menu ↵truelight
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
2006-04-05(svn r4291) - Fix: validate all received strings for correctness. This fixes ↵Darkvater
potential crashes on invalid clients/servers (thanks test for bringing this to our attention)
2006-01-31(svn r3500) - Workaround the inaccurate count of spectators/companies that ↵Darkvater
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.
2006-01-25(svn r3429) - Feature (Followup): Change the gamelist window to accomodate ↵Darkvater
for the new information.
2006-01-25(svn r3427) - Feature: Allow seeing and setting the maximum amount of ↵Darkvater
companies and spectators for a server. This can be changed/viewed during runtime as well in the console.
2006-01-19(svn r3409) - Change the server advertisement interval to use the frame ↵peter1138
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.
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-24(svn r3337) Remove an unused variable and add 2 times statictron
2005-12-20(svn r3322) - Fix: Network window crash when it receives invalid information ↵Darkvater
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
2005-10-16(svn r3053) -Fix: [ 1326604 ] Fixed typo and hang for BeOS Networking (MYOB)truelight
2005-10-06(svn r3023) -Fix [BeOS] fixed compilation on BeOS R5 (MYOB)bjarni
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-21(svn r2663) Include variables.h only in these files which need it, not ↵tron
globally via openttd.h
2005-05-17(svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made ↵truelight
Darkvater go crazy ;))
2005-02-08(svn r1847) Adjustment for MorphOS to unbreak the build there and removal of ↵tron
some now obsolete preprocessor magic
2005-02-06(svn r1833) byte -> char transition: the resttron
2005-02-06(svn r1821) Move generic string handling functions to string.[ch] and ↵tron
introduce stre{cpy,cat}, see string.h for their semantics
2005-02-05(svn r1803) Move debugging stuff into files of it's owntron
2005-01-26(svn r1689) -Fix: big typo in network_udp.c, the company-password flag ↵truelight
didn't work
2005-01-15(svn r1520) Trim 134 (!) lines with trailing whitespace ):tron
2005-01-14(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)truelight
- Added green dot if company income is positive (else red dot) - Added lock icon if company is password protected
2005-01-11(svn r1483) -Fix: don't close a socket if it is already closed (windows ↵truelight
doesn't like it :() (partly tnx to tamlin)
2005-01-05(svn r1389) -Add: [Network] Added packet protection. No longer a client or ↵truelight
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.
2005-01-03(svn r1331) Update map size before sending game infotron
2004-12-24(svn r1276) -Fix: [Network] Bug in bind system. Advertising failed on ↵truelight
systems with more then 1 ip, and server_bind active to one of them.
2004-12-22(svn r1228) -Add: [Network] When a server normally shuts down, it removed ↵truelight
itself from the server-list
2004-12-22(svn r1227) -Add: Ingame Server-list (select Internet, then Find Servers)truelight
-Fix: UDPListener was launched wrongly -Fix: Not all sockets have broadcast enabled anymore -Fix: Server-advertise retries 3 times before giving up
2004-12-20(svn r1194) Feature: You can now add and remove servers from the server ↵dominik
list. Those will be remembered until you delete them by pressing the Delete key.
2004-12-19(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const' truelight
and 'void' where needed, prefixed all functions, typedefs and global vars with 'Network' and organized all externals nicely.
2004-12-15(svn r1106) -Add: [Network] Added master-server protocol and advertise to truelight
master-server option. No GUI yet, and disabled by default (it still is WIP)
2004-12-13(svn r1069) -Add: [Network] Added UDP-packet for detail info about a server for truelight
upcoming server-listing
2004-12-13(svn r1059) -Fix: [Console] Renamed 'set port' to 'set server_port'truelight
-Add: [Network] Add ip-bind ('set server_bind_ip <ip>' in console or use scripts/pre_dedicated.scr)
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight