mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-07 12:25:07 +08:00
fixed type of socket handle (from int to CNetwork::Socket).
This commit is contained in:
@@ -51,7 +51,7 @@ ISocket* CTCPListenSocket::accept()
|
||||
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
|
||||
CNetwork::Address 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) {
|
||||
return new CTCPSocket(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user