Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
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 Synergy App 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
11
class
NetworkAddress
;
12
14
18
class
ISocket
19
{
20
public
:
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
};
ISocket
Generic socket interface.
Definition
ISocket.h:19
ISocket::close
virtual void close()=0
Close socket.
ISocket::~ISocket
virtual ~ISocket()=default
ISocket::getEventTarget
virtual void * getEventTarget() const =0
Get event target.
ISocket::bind
virtual void bind(const NetworkAddress &)=0
Bind socket to address.
NetworkAddress
Network address type.
Definition
NetworkAddress.h:17
src
lib
net
ISocket.h
Generated by
1.18.0