Deskflow 1.22.0.197
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) 2012 - 2016 Symless Ltd.
4 * SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
5 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
6 */
7
8#pragma once
9
10#include "base/Event.h"
11#include "base/EventTypes.h"
12#include "common/IInterface.h"
13
14class NetworkAddress;
15
17
21class ISocket : public IInterface
22{
23public:
25
26
28
31 virtual void bind(const NetworkAddress &) = 0;
32
34
37 virtual void close() = 0;
38
40
42
44
47 virtual void *getEventTarget() const = 0;
48
50};
Base class of interfaces.
Definition IInterface.h:18
Generic socket interface.
Definition ISocket.h:22
virtual void close()=0
Close socket.
virtual void * getEventTarget() const =0
Get event target.
virtual void bind(const NetworkAddress &)=0
Bind socket to address.
Network address type.
Definition NetworkAddress.h:18