blob: 6ef64e8b6c36274fefb14fc3032a73d24b4b8277 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <boost/signals.hpp>
#include "Swiften/Base/ByteArray.h"
#include "Swiften/Base/String.h"
namespace Swift {
class IncomingConnection {
public:
enum Error {
ConnectionError,
ReadError
};
virtual ~IncomingConnection();
virtual void write(const ByteArray& data) = 0;
public:
boost::signal<void (Error)> onError;
boost::signal<void (const ByteArray&)> onDataRead;
};
}
|