2012-07-09 10:57:32 +01:00
|
|
|
|
|
|
|
#ifndef _SD_IMPRESSREMOTE_SERVER_HXX
|
|
|
|
#define _SD_IMPRESSREMOTE_SERVER_HXX
|
|
|
|
|
|
|
|
// SERVER
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
2012-07-09 11:52:22 +01:00
|
|
|
#include <sys/types.h>
|
2012-07-09 10:57:32 +01:00
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
2012-07-09 15:53:03 +01:00
|
|
|
#include <osl/socket.hxx>
|
2012-07-09 10:57:32 +01:00
|
|
|
//#include <com/sun/star/presentation/AnimationEffect.hpp>
|
|
|
|
|
2012-07-09 15:53:03 +01:00
|
|
|
#include <salhelper/thread.hxx>
|
|
|
|
|
|
|
|
#include "Receiver.hxx"
|
2012-07-09 10:57:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The port for use for the main communication between LibO and remote control app.
|
|
|
|
*/
|
|
|
|
#define PORT 1599
|
|
|
|
|
|
|
|
|
|
|
|
namespace sd
|
|
|
|
{
|
|
|
|
|
2012-07-09 15:53:03 +01:00
|
|
|
class Server : public salhelper::Thread
|
2012-07-09 10:57:32 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
Server();
|
|
|
|
~Server();
|
|
|
|
private:
|
2012-07-09 15:53:03 +01:00
|
|
|
osl::AcceptorSocket mSocket;
|
|
|
|
osl::StreamSocket mStreamSocket;
|
|
|
|
void listenThread();
|
2012-07-09 10:57:32 +01:00
|
|
|
Receiver mReceiver;
|
2012-07-09 15:53:03 +01:00
|
|
|
void execute();
|
2012-07-09 10:57:32 +01:00
|
|
|
};
|
2012-07-09 15:53:03 +01:00
|
|
|
|
2012-07-09 10:57:32 +01:00
|
|
|
}
|
|
|
|
|
2012-07-09 11:52:22 +01:00
|
|
|
#endif // _SD_IMPRESSREMOTE_SERVER_HXX
|