Implemented _socket_info_error on peer_endpoint and bound_endpoint

This commit is contained in:
PePerRoNii
2025-06-15 11:17:49 +07:00
parent f49bf1abd2
commit 42aa8ac383
9 changed files with 79 additions and 17 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ listen_tcp :: proc(interface_endpoint: Endpoint, backlog := 1000) -> (socket: TC
/*
Returns the endpoint that the given socket is listening / bound on.
*/
bound_endpoint :: proc(socket: Any_Socket) -> (endpoint: Endpoint, err: Listen_Error) {
bound_endpoint :: proc(socket: Any_Socket) -> (endpoint: Endpoint, err: Socket_Info_Error) {
return _bound_endpoint(socket)
}