Skip to content

Instantly share code, notes, and snippets.

View mht's full-sized avatar

Sam Tsai mht

View GitHub Profile
@mht
mht / server.cpp
Created July 4, 2016 13:15
JUCE InterprocessConnection Demo : Server
const int kPortNumber = 52713;
class Connection : public InterprocessConnection
{
public:
Connection(WaitableEvent& stop_signal)
: InterprocessConnection(false, 15),
stop_signal_(stop_signal)
{
}
@mht
mht / client.cpp
Last active March 20, 2021 23:47
JUCE InterprocessConnection Demo : Client
const int kPortNumber = 52713;
class Connection : public InterprocessConnection
{
public:
Connection()
: InterprocessConnection(false, 15)
{
}
int _tmain(int argc, _TCHAR* argv[])
{
base::AtExitManager exit_manager;
CommandLine::Init(0, NULL);
base::FilePath log_dir;
PathService::Get(base::DIR_EXE, &log_dir);
base::FilePath log_file = log_dir.Append(kLogFile);
int main(int argc, char** argv)
{
return 0;
}