2020-02-12 18:42:22 +00:00
|
|
|
#ifndef cwEuConHost_h
|
|
|
|
#define cwEuConHost_h
|
|
|
|
|
|
|
|
namespace cw
|
|
|
|
{
|
|
|
|
namespace net
|
|
|
|
{
|
|
|
|
namespace eucon
|
|
|
|
{
|
2020-04-03 14:36:10 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
kUdpSockUserId=1,
|
|
|
|
kTcpSockUserId=2,
|
|
|
|
kBaseSockUserId=3
|
|
|
|
};
|
|
|
|
|
2020-02-12 18:42:22 +00:00
|
|
|
typedef handle<struct eucon_str> handle_t;
|
|
|
|
|
2020-04-03 14:36:10 +00:00
|
|
|
typedef struct args_str
|
|
|
|
{
|
|
|
|
unsigned recvBufByteN;
|
|
|
|
const char* mdnsIP;
|
|
|
|
sock::portNumber_t mdnsPort;
|
|
|
|
unsigned sockTimeOutMs;
|
|
|
|
sock::portNumber_t tcpPort;
|
|
|
|
unsigned maxSockN;
|
|
|
|
unsigned maxFaderBankN;
|
|
|
|
} args_t;
|
|
|
|
|
|
|
|
rc_t create( handle_t& hRef, const args_t& a );
|
2020-02-12 18:42:22 +00:00
|
|
|
rc_t destroy( handle_t& hRef );
|
2020-04-03 14:36:10 +00:00
|
|
|
rc_t exec( handle_t h, unsigned sockTimeOutMs );
|
2020-02-12 18:42:22 +00:00
|
|
|
rc_t test();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|