aboutsummaryrefslogtreecommitdiff
path: root/core/net/socket_linux.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-19 14:32:59 +0200
committerGitHub <noreply@github.com>2025-04-19 14:32:59 +0200
commitbc86b503922781091ec3ae54c722bd8ff33c7205 (patch)
treea801dfa24bb9e7390b797ef7eba24369c569f38f /core/net/socket_linux.odin
parentd10cb91e3f35f6f8e35887d20cbaddfff66b267e (diff)
Replace default_tcp_options with constant (#5056)
Replace `default_tcp_options` with constant
Diffstat (limited to 'core/net/socket_linux.odin')
-rw-r--r--core/net/socket_linux.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/net/socket_linux.odin b/core/net/socket_linux.odin
index 7dd1ccc9c..3ec3521f0 100644
--- a/core/net/socket_linux.odin
+++ b/core/net/socket_linux.odin
@@ -134,7 +134,7 @@ _create_socket :: proc(family: Address_Family, protocol: Socket_Protocol) -> (An
}
@(private)
-_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := default_tcp_options) -> (TCP_Socket, Network_Error) {
+_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := DEFAULT_TCP_OPTIONS) -> (TCP_Socket, Network_Error) {
errno: linux.Errno
if endpoint.port == 0 {
return 0, .Port_Required
@@ -231,7 +231,7 @@ _bound_endpoint :: proc(sock: Any_Socket) -> (ep: Endpoint, err: Listen_Error) {
}
@(private)
-_accept_tcp :: proc(sock: TCP_Socket, options := default_tcp_options) -> (tcp_client: TCP_Socket, endpoint: Endpoint, err: Accept_Error) {
+_accept_tcp :: proc(sock: TCP_Socket, options := DEFAULT_TCP_OPTIONS) -> (tcp_client: TCP_Socket, endpoint: Endpoint, err: Accept_Error) {
addr: linux.Sock_Addr_Any
client_sock, errno := linux.accept(linux.Fd(sock), &addr)
if errno != .NONE {