Rename function

This commit is contained in:
2025-07-18 11:10:49 -04:00
parent a7e252acd2
commit af242cb812

View File

@@ -38,7 +38,7 @@ Sock::Sock(char protocol, const char* address, int port) {
}
/* This method returns whether or not the socket is connected to a remote address */
bool Sock::get_remote_address() {
bool Sock::has_remote_address() {
struct sockaddr_storage addr;
socklen_t len = sizeof(addr);
return getpeername(this->sock_fd, (struct sockaddr*)&addr, &len) == 0;