source: trunk/synergy/lib/net/ISocketFactory.h

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1013 bytes
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2002 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef ISOCKETFACTORY_H
16#define ISOCKETFACTORY_H
17
18#include "IInterface.h"
19
20class IDataSocket;
21class IListenSocket;
22
23//! Socket factory
24/*!
25This interface defines the methods common to all factories used to
26create sockets.
27*/
28class ISocketFactory : public IInterface {
29public:
30 //! @name accessors
31 //@{
32
33 //! Create data socket
34 virtual IDataSocket* create() const = 0;
35
36 //! Create listen socket
37 virtual IListenSocket* createListen() const = 0;
38
39 //@}
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.