Buttplug sex toy control library
1# Buttplug Server Library
2
3[](https://www.patreon.com/qdot)
4[](https://www.github.com/sponsors/qdot)
5[](https://discuss.buttplug.io)
6[](https://discord.buttplug.io)
7[](https://twitter.com/buttplugio)
8[](https://bsky.app/profile/buttplug.io)
9
10[](https://crates.io/crates/buttplug)
11[](https://crates.io/crates/buttplug)
12[](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```