diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-08-02 16:11:06 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:23:08 +0100 |
commit | 341f89ec308bd5a66a36741d22f100721d8223de (patch) | |
tree | 1e0f279550384817a31df246b57a8524f11179d5 /sd | |
parent | e43e36facc93b9e27e4d8757124ca0e6fcd9396b (diff) |
Early non-functional multicast code.
Change-Id: Id982b40e5e9df4dee037a2e54ed34206930123c9
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/DiscoveryService.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/remotecontrol/ImagePreparer.cxx | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/DiscoveryService.cxx b/sd/source/ui/remotecontrol/DiscoveryService.cxx index 1ded965bcdf2..2d2b3672079b 100644 --- a/sd/source/ui/remotecontrol/DiscoveryService.cxx +++ b/sd/source/ui/remotecontrol/DiscoveryService.cxx @@ -45,15 +45,24 @@ void DiscoveryService::replyTo( SocketAddr& rAddr ) void DiscoveryService::execute() { + fprintf( stderr, "Discovery service is listening\n" );; sal_uInt64 aRet, aRead; vector<char> aBuffer; aRead = 0; + + + SocketAddr aListenAddr( "239.0.0.1", PORT_DISCOVERY ); + mSocket.bind( aListenAddr ); + SocketAddr aAddr; while ( true ) { aBuffer.resize( aRead + 100 ); + + fprintf( stderr, "DiscoveryService waiting for packet\n" ); aRet = mSocket.recvFrom( &aBuffer[aRead], 100 ); + fprintf( stderr, "DiscoveryService received a packet.\n" ); if ( aRet == 0 ) { fprintf( stderr, "Socket returned 0\n" ); diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx index f948834fbb03..defc8637f52f 100644 --- a/sd/source/ui/remotecontrol/ImagePreparer.cxx +++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx @@ -88,7 +88,7 @@ void ImagePreparer::execute() } sendNotes( i ); } - notesToHtml( 0 ); +// notesToHtml( 0 ); mRef.clear(); } |