20 #include "JackSocketServerNotifyChannel.h"
21 #include "JackError.h"
22 #include "JackRequest.h"
23 #include "JackConstants.h"
24 #include "JackNotification.h"
25 #include "JackServerGlobals.h"
30 int JackSocketServerNotifyChannel::Open(
const char* server_name)
32 if (fRequestSocket.Connect(jack_server_dir, server_name, 0) < 0) {
36 fRequestSocket.SetNonBlocking(
true);
37 JackServerGlobals::fRTNotificationSocket = fRequestSocket.GetFd();
42 void JackSocketServerNotifyChannel::Close()
44 fRequestSocket.Close();
53 void JackSocketServerNotifyChannel::Notify(
int refnum,
int notify,
int value)
55 JackClientNotificationRequest req(refnum, notify, value);
56 if (req.Write(&fRequestSocket) < 0) {
57 jack_error(
"Could not write notification ref = %d notify = %d", refnum, notify);
61 void JackSocketServerNotifyChannel::NotifyQuit()
SERVER_EXPORT void jack_error(const char *fmt,...)