From af242cb812d5a99340b74b404351d866e1daf1fc Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Fri, 18 Jul 2025 11:10:49 -0400 Subject: [PATCH] Rename function --- sock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sock.cpp b/sock.cpp index f081fd5..9baf171 100644 --- a/sock.cpp +++ b/sock.cpp @@ -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;