minetest/src/network
Loïc Blot 454dbf83a9
Server class code cleanups (#9769)
* Server::overrideDayNightRatio doesn't require to return bool
There is no sense to sending null player, the caller should send a valid object

* Server::init: make private & cleanup
This function is always called before start() and loads some variables which can be loaded in constructor directly.
Make it private and call it directly in start

* Split Server inventory responsibility to a dedicated object

This splits permit to found various historical issues:
* duplicate lookups on player connection
* sending inventory to non related player when a player connects
* non friendly lookups on detached inventories ownership

This reduce the detached inventory complexity and also increased the
lookup performance in a quite interesting way for servers with thousands
of inventories.
2020-05-07 22:38:41 +02:00
..
CMakeLists.txt Initial Haiku support (#6568) 2017-10-30 08:17:43 +01:00
address.cpp Attend to LINT sillyness (#8276) 2019-02-23 02:41:36 +00:00
address.h Disable confirmation dialog on localhost 2019-02-09 19:52:56 +01:00
clientopcodes.cpp Miscellaneous networking improvements (#9611) 2020-04-08 20:12:58 +02:00
clientopcodes.h Move client-specific files to 'src/client' (#7902) 2018-11-28 20:01:49 +01:00
clientpackethandler.cpp Sky API: Rename *_tint to fog_*_tint for consistency 2020-05-05 08:37:04 +02:00
connection.cpp Improve protocol-level receiving code (#9617) 2020-04-20 23:22:00 +02:00
connection.h Allow connection info to be missing from minetest.get_player_information() (#9739) 2020-05-01 21:44:28 +02:00
connectionthreads.cpp Improve protocol-level receiving code (#9617) 2020-04-20 23:22:00 +02:00
connectionthreads.h Improve protocol-level receiving code (#9617) 2020-04-20 23:22:00 +02:00
networkexceptions.h Network cleanup (#6302) 2017-08-24 08:28:54 +02:00
networkpacket.cpp Rework packet receiving in ServerThread 2019-11-19 20:27:20 +01:00
networkpacket.h Rework packet receiving in ServerThread 2019-11-19 20:27:20 +01:00
networkprotocol.h Sky API: Rename *_tint to fog_*_tint for consistency 2020-05-05 08:37:04 +02:00
peerhandler.h LINT fixes since recent tooling update 2019-03-14 12:30:13 +01:00
serveropcodes.cpp Miscellaneous networking improvements (#9611) 2020-04-08 20:12:58 +02:00
serveropcodes.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
serverpackethandler.cpp Server class code cleanups (#9769) 2020-05-07 22:38:41 +02:00
socket.cpp Fix ipv6_server=true not accepting IPv4 connections on Windows (#7471) 2018-06-22 20:54:23 +02:00
socket.h Network cleanup (#6302) 2017-08-24 08:28:54 +02:00