really minor fix
parent
22f151c82d
commit
3b22c4d2db
|
@ -36,7 +36,7 @@ int ClientSocket::send(std::string msg, int flags=0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int ClientSocket::recv(int flags) {
|
int ClientSocket::recv(int flags) {
|
||||||
memset(&_buf[0], 0, sizeof(_buf));
|
memset(&buf[0], 0, sizeof(buf));
|
||||||
if(_protocol == "TCP") {
|
if(_protocol == "TCP") {
|
||||||
int rr = ::recv(_descriptor, buf, 99999, flags);
|
int rr = ::recv(_descriptor, buf, 99999, flags);
|
||||||
if(rr == -1) {
|
if(rr == -1) {
|
||||||
|
|
Loading…
Reference in New Issue