summaryrefslogtreecommitdiff
path: root/src/net_server.c
AgeCommit message (Collapse)Author
2006-04-01Don't add modules to the server context until after they have been Simon Howard
initialised - avoids crash when bombing out in the init function Subversion-branch: /trunk/chocolate-doom Subversion-revision: 460
2006-03-30When all players leave a server, start accepting new connections again.Simon Howard
This lets people run proper dedicated servers. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 457
2006-03-30Split off timer code into separate i_timer.c file. Add d_dedicated.cSimon Howard
and build chocolate-server, a standalone dedicated server. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 455
2006-03-30Remove hard-coded use of network modules from server code.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 453
2006-03-24Adjust anti-CPU-hogging sleep times.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 440
2006-03-07Store the reason when a connection is disconnected, and display a Simon Howard
message indicating when clients time out from the server. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 412
2006-03-07Generic console message mechanism. Inform all players when recordingSimon Howard
a low-res demo. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 410
2006-03-06Give a server-side warning when recording low resolution demos.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 409
2006-02-27Working client sync: adjust the clock to try to match the latency of other Simon Howard
players. Allow the menu ticker to run even if the main game ticker doesn't run. Remove time request/response code (now using game latency). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 394
2006-02-24Fix -extraticsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 389
2006-02-24Only advance the receive window if we have received ticcmds from allSimon Howard
connected players. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 387
2006-02-23Free back packets sent to the server after parsing themSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 384
2006-02-23Fix crash when NOT recording lowresSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 380
2006-02-23Add lowres_turn to indicate whether we generate angleturns which areSimon Howard
8-bit as opposed to 16-bit. This is used when recording demos without -longtics enabled. Sync this option between clients in a netgame, so that if one player is recording a Vanilla demo, all clients record in lowres. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 378
2006-02-23Fix bugs in resend code for server->client dataSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 377
2006-02-22Packet resends for server->client gamedataSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 375
2006-02-19Move tic number expansion code to common code. Parse game data packetsSimon Howard
received from the server. Strip down d_net.[ch] to work through the new networking code. Remove game sync code. Remove i_net.[ch] as it is no longer needed. Working networking! Subversion-branch: /trunk/chocolate-doom Subversion-revision: 374
2006-02-17Remove debug codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 372
2006-02-17Full working resends for client->server commsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 371
2006-02-17Request resends for missed packetsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 370
2006-02-16Define a new type net_full_ticcmd_t, a structure containing all ticcmdsSimon Howard
for a given tic. Store received game data in a receive window. Add send queues for clients and add data from the receive window to generate complete sets of ticcmds. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 369
2006-01-22Periodically request the time from clients to estimate their offset toSimon Howard
the server time. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 323
2006-01-21Add first game data sending code. Check the client version when connecting.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 312
2006-01-12Only start new games when in the waiting-for-start state.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 285
2006-01-12Game start packetsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 284
2006-01-10Reliable packet transport mechanismSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 279
2006-01-09Send clients their player number, and indicate on the waiting screenSimon Howard
which client we are. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 278
2006-01-09Deduce a sane player name by examining environment variables. AddSimon Howard
a "player_name" setting to chocolate-doom.cfg. Transmit the name to the server and use the names players send in the waiting data list. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 277
2006-01-08Reject new connections if the server is not in the waiting state.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 270
2006-01-08Allow the server to reject clientsSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 268
2006-01-08Fix packet sendSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 266
2006-01-08Send keepalives if the connection is not doing anything else.Simon Howard
Send all packets using a new NET_Conn_SendPacket to support this. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 264
2006-01-08Move common connection code into net_common.c, shared by serverSimon Howard
and client code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 263
2006-01-07Send player name and address in the waiting data packets. Display theseSimon Howard
on the waiting screen, and improve the waiting screen appearance. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 262
2006-01-02fix client connected functionSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 251
2006-01-02Create NET_SV_Shutdown function to shut down the server. Call itSimon Howard
when quitting the game. Print the IP of the server correctly when connecting. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 250
2006-01-02Refer to connected clients by their AddrToString() output rather than justSimon Howard
the pointer to their struct. Listen for IP connections as well as loopback connections. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 245
2006-01-02Remove test codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 243
2006-01-02Fix packet not freed back after being sent.Simon Howard
Code to disconnect clients from the server side. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 242
2006-01-02Neater prefixes: NET_Client -> NET_CL_. NET_Server -> NET_SV_.Simon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 239
2006-01-01Client disconnect codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 238
2005-12-30Fix client code to correctly send reply to server on connection.Simon Howard
Add "waiting screen" while waiting for the game to start. Hook in the new networking code into the main game code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 235
2005-12-29Working client connect codeSimon Howard
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 233
2005-12-29Add initial client/server connect code. Reorganise sources list inSimon Howard
Makefile.am. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 232