Lines Matching refs:code
71 int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { in sendMsg() argument
72 return sendMsg(code, msg, addErrno, mUseCmdNum); in sendMsg()
75 int SocketClient::sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum) { in sendMsg() argument
81 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); in sendMsg()
83 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); in sendMsg()
87 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); in sendMsg()
89 ret = asprintf(&buf, "%d %s", code, msg); in sendMsg()
101 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { in sendBinaryMsg() argument
106 snprintf(buf, 4, "%.3d", code); in sendBinaryMsg()
125 int SocketClient::sendCode(int code) { in sendCode() argument
127 snprintf(buf, sizeof(buf), "%.3d", code); in sendCode()