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 |
|
|