Searched refs:msg_len (Results 1 – 1 of 1) sorted by relevance
98 int msg_len = message.length(); in VtsSocketSendBytes() local99 while (bytes_sent < msg_len) { in VtsSocketSendBytes()100 n = write(sockfd_, &message.c_str()[bytes_sent], msg_len - bytes_sent); in VtsSocketSendBytes()136 int msg_len = atoi(header_buffer); in VtsSocketRecvBytes() local137 char* msg = (char*)malloc(msg_len + 1); in VtsSocketRecvBytes()144 while (bytes_read < msg_len) { in VtsSocketRecvBytes()145 int result = read(sockfd_, &msg[bytes_read], msg_len - bytes_read); in VtsSocketRecvBytes()152 msg[msg_len] = '\0'; in VtsSocketRecvBytes()153 return string(msg, msg_len); in VtsSocketRecvBytes()