Buttplug sex toy control library
1# Buttplug Server Library 2 3[![Patreon donate button](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/qdot) 4[![Github donate button](https://img.shields.io/badge/github-donate-ff69b4.svg)](https://www.github.com/sponsors/qdot) 5[![Discourse Forums](https://img.shields.io/discourse/status?label=buttplug.io%20forums&server=https%3A%2F%2Fdiscuss.buttplug.io)](https://discuss.buttplug.io) 6[![Discord](https://img.shields.io/discord/353303527587708932.svg?logo=discord)](https://discord.buttplug.io) 7[![Twitter](https://img.shields.io/twitter/follow/buttplugio.svg?style=social&logo=twitter)](https://twitter.com/buttplugio) 8[![bluesky](https://img.shields.io/bluesky/followers/buttplug.io)](https://bsky.app/profile/buttplug.io) 9 10[![Crates.io Version](https://img.shields.io/crates/v/buttplug)](https://crates.io/crates/buttplug) 11[![Crates.io Downloads](https://img.shields.io/crates/d/buttplug)](https://crates.io/crates/buttplug) 12[![Crates.io License](https://img.shields.io/crates/l/buttplug)](https://crates.io/crates/buttplug) 13 14The portion of Buttplug that handles connecting to and controlling hardware (but none of the code that actually connects to the hardware, that's out in the hwmgr libraries). 15 16The server library contains 17 18- The server implementation (session handling, device management, etc) 19- Message parsing, including message version up/downgrading for backward compatibility 20- Protocol implementations for all supported devices 21 22## License 23 24Buttplug is BSD 3-Clause licensed. 25 26```text 27 28Copyright (c) 2016-2025, Nonpolynomial, LLC 29All rights reserved. 30 31Redistribution and use in source and binary forms, with or without 32modification, are permitted provided that the following conditions are met: 33 34* Redistributions of source code must retain the above copyright notice, this 35 list of conditions and the following disclaimer. 36 37* Redistributions in binary form must reproduce the above copyright notice, 38 this list of conditions and the following disclaimer in the documentation 39 and/or other materials provided with the distribution. 40 41* Neither the name of buttplug nor the names of its 42 contributors may be used to endorse or promote products derived from 43 this software without specific prior written permission. 44 45THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 46AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 47IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 48DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 49FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 50DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 51SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 52CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 53OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 54OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 55```