cwEuCon.h/cpp : Added an application thread.
This commit is contained in:
parent
c6ccaefcdb
commit
1fe3e6d841
1264
cwEuCon.cpp
1264
cwEuCon.cpp
File diff suppressed because it is too large
Load Diff
45
cwEuCon.h
45
cwEuCon.h
@ -3,35 +3,32 @@
|
|||||||
|
|
||||||
namespace cw
|
namespace cw
|
||||||
{
|
{
|
||||||
namespace net
|
namespace eucon
|
||||||
{
|
{
|
||||||
namespace eucon
|
enum
|
||||||
{
|
{
|
||||||
enum
|
kUdpSockUserId=1,
|
||||||
{
|
kTcpSockUserId=2,
|
||||||
kUdpSockUserId=1,
|
kBaseSockUserId=3
|
||||||
kTcpSockUserId=2,
|
};
|
||||||
kBaseSockUserId=3
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef handle<struct eucon_str> handle_t;
|
typedef handle<struct eucon_str> handle_t;
|
||||||
|
|
||||||
typedef struct args_str
|
typedef struct args_str
|
||||||
{
|
{
|
||||||
unsigned recvBufByteN; // Socket receive buffer size
|
unsigned recvBufByteN; // Socket receive buffer size
|
||||||
const char* mdnsIP; // MDNS IP (always: "224.0.0.251")
|
const char* mdnsIP; // MDNS IP (always: "224.0.0.251")
|
||||||
sock::portNumber_t mdnsPort; // MDNS port (always 5353)
|
sock::portNumber_t mdnsPort; // MDNS port (always 5353)
|
||||||
unsigned sockTimeOutMs; // socket poll time out in milliseconds (also determines the cwEuCon update rate)
|
unsigned sockTimeOutMs; // socket poll time out in milliseconds (also determines the cwEuCon update rate)
|
||||||
sock::portNumber_t faderTcpPort; // Fader TCP port (e.g. 49168)
|
sock::portNumber_t faderTcpPort; // Fader TCP port (e.g. 49168)
|
||||||
unsigned maxSockN; // maximum number of socket to allow in the socket manager
|
unsigned maxSockN; // maximum number of socket to allow in the socket manager
|
||||||
unsigned maxFaderBankN; // maximum number of fader banks to support
|
unsigned maxFaderBankN; // maximum number of fader banks to support
|
||||||
} args_t;
|
} args_t;
|
||||||
|
|
||||||
rc_t create( handle_t& hRef, const args_t& a );
|
rc_t create( handle_t& hRef, const args_t& a );
|
||||||
rc_t destroy( handle_t& hRef );
|
rc_t destroy( handle_t& hRef );
|
||||||
rc_t exec( handle_t h, unsigned sockTimeOutMs );
|
rc_t exec( handle_t h, unsigned sockTimeOutMs );
|
||||||
rc_t test();
|
rc_t test();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user