update CSpot

This commit is contained in:
philippe44
2022-03-04 20:06:19 -08:00
parent 7b1d1ad45e
commit 57b77766ff
28 changed files with 226 additions and 110 deletions

View File

@@ -73,6 +73,7 @@ namespace bell
sizeof(int)); /* length of option value */
freeaddrinfo(addr);
std::cout << "Socket opened" << std::endl;
}
size_t read(uint8_t *buf, size_t len) {
@@ -83,11 +84,11 @@ namespace bell
return send(sockFd, buf, len, 0);
}
size_t poll() {
int value;
ioctl(sockFd, FIONREAD, &value);
return value;
}
size_t poll() {
int value;
ioctl(sockFd, FIONREAD, &value);
return value;
}
void close() {
if (!isClosed) {