aboutsummaryrefslogtreecommitdiff
path: root/src/network
Commit message (Collapse)AuthorAge
* Encode high codepoints as surrogates to safely transport wchar_t over networksfan52021-02-02
| | | | fixes #7643
* Drop wide/narrow conversion functionssfan52021-02-02
| | | | | | | | | The only valid usecase for these is interfacing with OS APIs that want a locale/OS-specific multibyte encoding. But they weren't used for that anywhere, instead UTF-8 is pretty much assumed when it comes to that. Since these are only a potential source of bugs and do not fulfil their purpose at all, drop them entirely.
* Server GotBlocks(): Lock clients to avoid multithreading issuesSmallJoker2021-02-02
|
* Cache client IP in RemoteClient so it can always be retrieved (#10887)sfan52021-01-31
| | | specifically: after the peer has already disappeared
* Remove dead code (#10845)rubenwardy2021-01-22
|
* Fix some minor code issues all over the placesfan52020-12-24
|
* Documentation for highest formspec_version[] and changelog (#10592)DS2020-12-18
|
* serverpackethandler: Minor log message fixessfan52020-11-12
| | | | closes #10434
* Fix object interaction distance not being checked (#10547)rubenwardy2020-11-09
|
* Block attempts to connect to the client (#10589)red-0012020-11-02
| | | A Minetest peer initiates a connection by sending a packet with an invalid peer_id, for whatever reason the code for doing this ran on both the client and the server meaning you could connect to a client if you knew what the address:port tuple it was listening on.
* Remove unused functions reported by cppcheck (#10463)SmallJoker2020-10-05
| | | | | | | Run unused functions reported by cppcheck This change removes a few (but not all) unused functions. Some unused helper functions were not removed due to their complexity and potential of future use.
* Minimap as HUD element with API controlPierre-Yves Rollo2020-10-04
| | | | | | | Features: * Define Minimap available modes (surface/radar, scale) from Lua, using player:set_minimap_modes() * New HUD elements for displaying minimap with custom size and placing * New minimap mode for displaying a texture instead of the map
* (se)SerializeString: Include max length in the nameSmallJoker2020-10-01
| | | | | | | This commit clarifies the maximal length of the serialized strings. It will avoid accidental use of serializeString() when a larger string can be expected. Removes unused Wide String serialization functions
* Inventory: Protect Craft and Drop actions (#10353)SmallJoker2020-09-07
| | | Change dangerous pointer to unique_ptr for automated deletion.
* Prevent interacting with items out of the hotbar (#10359)Lejo2020-09-04
|
* [2] Code cleanup in serverpackethandler (#9349)HybridDog2020-09-01
| | | | | | * Code cleanup in serverpackethandler * do not define p_under unless a node is pointed * use switch-case and reduce indentation
* Prevent players accessing inventories of other players (#10341)Lars Müller2020-08-29
|
* Complete Haiku platform support. (#10311)David CARLIER2020-08-23
| | | | | Fixing linkage/libraries missing issue. Implements missing platform specifics.
* Allow binding dig, place actions to keys; remove LMB/RMB hardcodingANAND2020-08-15
| | | | Co-authored-by: Sam Caulfield <sam@samcaulfield.com>
* Add PUT and DELETE request + specific method value to HTTP API (#9909)Lejo2020-07-29
|
* Replace std::list<session_t> in networking code (#10215)sfan52020-07-23
|
* Add reconnect button on error: Too many players (#9405)Lejo2020-07-12
|
* Formspec: Make dropdowns optionally return event based on index, not value ↵v-rob2020-07-10
| | | | (#9496)
* Exposing the zoom key to Lua API (#9903)Lars Müller2020-06-13
| | | Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
* Server pushing media at runtime (#9961)sfan52020-06-13
|
* Implement spawning particles with node texture appearancesfan52020-05-23
|
* Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)sorcerykid2020-05-23
| | | | | | Replace on_auth_fail callback with more versatile on_authplayer Better clarify account login process in Lua API documentation Change initial timestamp for newly registered accounts to -1
* Cleanup of particle & particlespawner structures and code (#9893)sfan52020-05-22
|
* Log protocol ver on mismatched client connect toosfan52020-05-16
|
* network: Replace a fatal_error with just error loggingsfan52020-05-14
|
* Add support for statbar “off state” icons (#9462)Wuzzy2020-05-11
| | | | | | | This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
* Server class code cleanups (#9769)Loïc Blot2020-05-07
| | | | | | | | | | | | | | | | | | | * 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.
* Server: Improve some log messages (#9820)sfan52020-05-05
|
* Sky API: Rename *_tint to fog_*_tint for consistencySmallJoker2020-05-05
|
* set_fov: Add support for time-based transitions (#9705)ANAND2020-05-02
|
* Allow connection info to be missing from minetest.get_player_information() ↵sfan52020-05-01
| | | | | | (#9739) fixes #9352 This reverts commit 23c907befea02005e2c0c87fca0131b60aace18a.
* Add server side translations capability (#9733)EvidenceB Kidscode2020-04-25
| | | | * Add server side translations capability
* Improve protocol-level receiving code (#9617)sfan52020-04-20
|
* serverpackethandler: Reduce pkt->getPeerId() invocations and more (#9689)HybridDog2020-04-18
|
* Add scroll_container formspec element (redo) (#9101)DS2020-04-13
| | | | | | | | | New formspec elements: - `scroll_container[<X>,<Y>;<W>,<H>;<scrollbar name>;<orientation>;<scroll factor>]` - `scroll_container_end[]` Other elements can be embedded in this element. Scrollbar must be placed manually.
* Move PlayerSAO to dedicated filesLoic Blot2020-04-11
|
* Drop genericobject.{cpp,h} (#9629)Loïc Blot2020-04-10
| | | | | | | | | | * Drop genericobject.{cpp,h} This file is not for generic object but for ActiveObject message passing. Put ownership of the various commands to the right objects and cleanup the related code. * Protect ServerActiveObject::m_messages_out * typo fix
* Overall improvements to log messages (#9598)sfan52020-04-08
| | | | Hide some unnecessarily verbose ones behind --trace or disable them entirely. Remove duplicate ones. Improve their contents in some places.
* Miscellaneous networking improvements (#9611)sfan52020-04-08
| | | fixes #2862
* Connection: Fix deadlock in debug mode (#9550)SmallJoker2020-03-26
|
* Add comments for translators (#9510)Wuzzy2020-03-20
| | | | | * Add translator comments for "special" strings * Add translator comments for some "tricky" strings
* Workaround for get_player_informationSmallJoker2020-03-08
| | | | '-1' as value is handled as an error. If there are no RTT updates upon fast connect, set_player_information returned nil.
* Fix memory leak in protocol 38 set_skysfan52020-03-05
|
* Fixes around ServerActiveObject on_punch handlingsfan52020-03-05
|
* set_sky improvements, set_sun, set_moon and set_starsJordach2020-03-05
|