summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/DiscoveryService.cxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-02 16:52:53 +0200
committerMichael Meeks <michael.meeks@suse.com>2012-08-06 10:23:09 +0100
commit5e365b05683402dcdcf527e74e472e844cff15a0 (patch)
treeb8b014f8041c3163fb24dc6a30853201ffb86f3d /sd/source/ui/remotecontrol/DiscoveryService.cxx
parent473143eac756184028e487d23a9af6ea452e1324 (diff)
Server discovery functional.
Change-Id: I8642e0ea95a8d6691b76cc4d2dc1ddfbbf2b03e2
Diffstat (limited to 'sd/source/ui/remotecontrol/DiscoveryService.cxx')
-rw-r--r--sd/source/ui/remotecontrol/DiscoveryService.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx
index 612332fac08e..bc514d7d3835 100644
--- a/sd/source/ui/remotecontrol/DiscoveryService.cxx
+++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx
@@ -67,6 +67,8 @@ void DiscoveryService::replyTo( sockaddr_in& rAddr )
// OStringBuffer aBuffer( "LOREMOTE_ADVERTISE\n" );
// aBuffer.append( aAddrString ).append( "\n" );
// mSocket.sendTo( rAddr, aBuffer.getStr(), aBuffer.getLength() );
+ OString aMessage("LOREMOTE_ADVERTISE\n");
+ sendto( mSocket, aMessage.getStr(), aMessage.getLength(), 0, (sockaddr*) &rAddr, sizeof(rAddr) );
}
void DiscoveryService::execute()