Skip to content
Snippets Groups Projects
Commit 7375cbae authored by Recolic Keghart's avatar Recolic Keghart
Browse files

change new sio api

parent 82ba9d11
No related branches found
No related tags found
No related merge requests found
......@@ -233,7 +233,7 @@ namespace rlib {
auto size = readall_ex(fd, &ptr, NULL);
return std::string((char *)ptr, size);
}
static void quick_writen(fd_t fd, const std::string &data) {
static void quick_write(fd_t fd, const std::string &data) {
writen_ex(fd, data.data(), data.size());
}
};
......@@ -349,7 +349,7 @@ namespace rlib {
auto size = recvall_ex(fd, &ptr, NULL, MSG_NOSIGNAL);
return std::string((char *)ptr, size);
}
static void quick_sendn(fd_t fd, const std::string &data) {
static void quick_send(fd_t fd, const std::string &data) {
sendn_ex(fd, data.data(), data.size(), MSG_NOSIGNAL);
}
......@@ -570,7 +570,7 @@ namespace rlib {
auto size = recvall_ex(fd, &ptr, NULL, NULL);
return std::string((char *)ptr, size);
}
static void quick_sendn(sockfd_t fd, const std::string &data) {
static void quick_send(sockfd_t fd, const std::string &data) {
sendn_ex(fd, data.data(), data.size(), NULL);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment