diff options
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Component/CoreComponent.cpp | 4 | ||||
-rw-r--r-- | Swiften/Component/CoreComponent.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Component/CoreComponent.cpp b/Swiften/Component/CoreComponent.cpp index d2cc7aa..cc6be42 100644 --- a/Swiften/Component/CoreComponent.cpp +++ b/Swiften/Component/CoreComponent.cpp @@ -161,4 +161,8 @@ void CoreComponent::sendPresence(boost::shared_ptr<Presence> presence) { stanzaChannel_->sendPresence(presence); } +void CoreComponent::sendData(const std::string& data) { + sessionStream_->writeData(data); +} + } diff --git a/Swiften/Component/CoreComponent.h b/Swiften/Component/CoreComponent.h index 63b68f6..e9fdd88 100644 --- a/Swiften/Component/CoreComponent.h +++ b/Swiften/Component/CoreComponent.h @@ -51,6 +51,7 @@ namespace Swift { void sendMessage(boost::shared_ptr<Message>); void sendPresence(boost::shared_ptr<Presence>); + void sendData(const std::string& data); IQRouter* getIQRouter() const { return iqRouter_; |