fixed type of socket handle (from int to CNetwork::Socket).
This commit is contained in:
parent
5c760183ce
commit
d893cc16a8
|
@ -51,7 +51,7 @@ ISocket* CTCPListenSocket::accept()
|
||||||
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
|
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
|
||||||
CNetwork::Address addr;
|
CNetwork::Address addr;
|
||||||
CNetwork::AddressLength addrlen = sizeof(addr);
|
CNetwork::AddressLength addrlen = sizeof(addr);
|
||||||
int fd = CNetwork::accept(m_fd, &addr, &addrlen);
|
CNetwork::Socket fd = CNetwork::accept(m_fd, &addr, &addrlen);
|
||||||
if (fd != CNetwork::Null) {
|
if (fd != CNetwork::Null) {
|
||||||
return new CTCPSocket(fd);
|
return new CTCPSocket(fd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue