Rename function
This commit is contained in:
		
							
								
								
									
										2
									
								
								sock.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								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 */ | /* 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; |     struct sockaddr_storage addr; | ||||||
|     socklen_t len = sizeof(addr); |     socklen_t len = sizeof(addr); | ||||||
|     return getpeername(this->sock_fd, (struct sockaddr*)&addr, &len) == 0; |     return getpeername(this->sock_fd, (struct sockaddr*)&addr, &len) == 0; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user