struct HelloMessage
{
int pid;
- bool reverse;
+ int reverse;
};
result
socklen_t serverLen = 0;
int client = -1;
int ret = 0;
- HelloMessage helloMessage = {0, false};
+ HelloMessage helloMessage = {0, 0};
std::string socketName;
char* pSocketName = null;
size_t socketNameLength = 0;
int flags = 0;
helloMessage.pid = getpid();
- helloMessage.reverse = forReverse;
+ if (forReverse)
+ {
+ helloMessage.reverse = 1;
+ }
+ else
+ {
+ helloMessage.reverse = 0;
+ }
pSocketName = _StringConverter::CopyToCharArrayN(__name);
SysTryReturnResult(NID_IO, pSocketName != null, E_OUT_OF_MEMORY, "The memory is insufficient.");
struct HelloMessage
{
int pid;
- bool reverse; // true if the connection is for reverse message
+ int reverse; // if the connection is for reverse message
};
gboolean
pIpcServer->__pCurrentClientInfo = null;
}
- if (helloMessage.reverse)
+ if (helloMessage.reverse != 0)
{
pClientInfo->pReverseChannel = pChannel;
}