diff --git a/core/net/addr.odin b/core/net/addr.odin index f12799d4d..636616932 100644 --- a/core/net/addr.odin +++ b/core/net/addr.odin @@ -1,4 +1,6 @@ +// +build windows, linux, darwin package net + /* Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. For other protocols and their features, see subdirectories of this package. diff --git a/core/net/common.odin b/core/net/common.odin index ce8a6a721..62854415e 100644 --- a/core/net/common.odin +++ b/core/net/common.odin @@ -1,4 +1,6 @@ +// +build windows, linux, darwin package net + /* Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. For other protocols and their features, see subdirectories of this package. diff --git a/core/net/dns.odin b/core/net/dns.odin index 15e980594..5714ab9b0 100644 --- a/core/net/dns.odin +++ b/core/net/dns.odin @@ -1,3 +1,11 @@ +// +build windows, linux, darwin +package net + +/* + Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. + For other protocols and their features, see subdirectories of this package. +*/ + /* Copyright 2022 Tetralux Copyright 2022 Colin Davidson @@ -10,12 +18,6 @@ Jeroen van Rijn: Cross platform unification, code style, documentation */ -/* - Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. - For other protocols and their features, see subdirectories of this package. -*/ -package net - import "core:mem" import "core:strings" import "core:time" diff --git a/core/net/interface.odin b/core/net/interface.odin index 68eb73aa6..df7d0223e 100644 --- a/core/net/interface.odin +++ b/core/net/interface.odin @@ -1,3 +1,11 @@ +// +build windows, linux, darwin +package net + +/* + Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. + For other protocols and their features, see subdirectories of this package. +*/ + /* Copyright 2022 Tetralux Copyright 2022 Colin Davidson @@ -10,12 +18,6 @@ Jeroen van Rijn: Cross platform unification, code style, documentation */ -/* - Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. - For other protocols and their features, see subdirectories of this package. -*/ -package net - import "core:strings" MAX_INTERFACE_ENUMERATION_TRIES :: 3 diff --git a/core/net/socket.odin b/core/net/socket.odin index 1b73fcf53..95eb50496 100644 --- a/core/net/socket.odin +++ b/core/net/socket.odin @@ -1,3 +1,11 @@ +// +build windows, linux, darwin +package net + +/* + Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. + For other protocols and their features, see subdirectories of this package. +*/ + /* Copyright 2022-2023 Tetralux Copyright 2022-2023 Colin Davidson @@ -10,12 +18,6 @@ Jeroen van Rijn: Cross platform unification, code style, documentation */ -/* - Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures. - For other protocols and their features, see subdirectories of this package. -*/ -package net - any_socket_to_socket :: proc(socket: Any_Socket) -> Socket { switch s in socket { case TCP_Socket: return Socket(s)