47 |
#include "../common/Condition.h" |
#include "../common/Condition.h" |
48 |
|
|
49 |
/// TCP Port on which the server should listen for connection requests. |
/// TCP Port on which the server should listen for connection requests. |
50 |
|
#define LSCP_ADDR INADDR_ANY |
51 |
#define LSCP_PORT 8888 |
#define LSCP_PORT 8888 |
52 |
|
|
53 |
/// try up to 3 minutes to bind server socket |
/// try up to 3 minutes to bind server socket |
64 |
*/ |
*/ |
65 |
class LSCPServer : public Thread { |
class LSCPServer : public Thread { |
66 |
public: |
public: |
67 |
LSCPServer(Sampler* pSampler); |
LSCPServer(Sampler* pSampler, long int addr, short int port); |
68 |
virtual ~LSCPServer(); |
virtual ~LSCPServer(); |
69 |
int WaitUntilInitialized(long TimeoutSeconds = 0L, long TimeoutNanoSeconds = 0L); |
int WaitUntilInitialized(long TimeoutSeconds = 0L, long TimeoutNanoSeconds = 0L); |
70 |
|
|
127 |
String SetVolume(double dVolume, uint uiSamplerChannel); |
String SetVolume(double dVolume, uint uiSamplerChannel); |
128 |
String ResetChannel(uint uiSamplerChannel); |
String ResetChannel(uint uiSamplerChannel); |
129 |
String ResetSampler(); |
String ResetSampler(); |
130 |
|
String GetServerInfo(); |
131 |
String SubscribeNotification(LSCPEvent::event_t); |
String SubscribeNotification(LSCPEvent::event_t); |
132 |
String UnsubscribeNotification(LSCPEvent::event_t); |
String UnsubscribeNotification(LSCPEvent::event_t); |
133 |
String QueryDatabase(String query); |
String QueryDatabase(String query); |