Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ISocket.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-FileCopyrightText: (C) 2012 - 2016 Symless Ltd.
5 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7 */
8
9#pragma once
10
11class NetworkAddress;
12
14
19{
20public:
21 virtual ~ISocket() = default;
23
24
26
29 virtual void bind(const NetworkAddress &) = 0;
30
32
35 virtual void close() = 0;
36
38
40
42
45 virtual void *getEventTarget() const = 0;
46
48};
Generic socket interface.
Definition ISocket.h:19
virtual void close()=0
Close socket.
virtual ~ISocket()=default
virtual void * getEventTarget() const =0
Get event target.
virtual void bind(const NetworkAddress &)=0
Bind socket to address.
Network address type.
Definition NetworkAddress.h:17