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);
41 void JackSocketServerNotifyChannel::Close()
43 fRequestSocket.Close();
52 void JackSocketServerNotifyChannel::Notify(
int refnum,
int notify,
int value)
54 JackClientNotificationRequest req(refnum, notify, value);
55 if (req.Write(&fRequestSocket) < 0) {
56 jack_error(
"Could not write notification ref = %d notify = %d", refnum, notify);
60 void JackSocketServerNotifyChannel::NotifyQuit()
SERVER_EXPORT void jack_error(const char *fmt,...)