mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Don't try to check core:net on the BSDs.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
// +build windows, linux, darwin
|
||||||
package net
|
package net
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
|
Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
|
||||||
For other protocols and their features, see subdirectories of this package.
|
For other protocols and their features, see subdirectories of this package.
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
|
// +build windows, linux, darwin
|
||||||
package net
|
package net
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
|
Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
|
||||||
For other protocols and their features, see subdirectories of this package.
|
For other protocols and their features, see subdirectories of this package.
|
||||||
|
|||||||
+8
-6
@@ -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 <tetraluxonpc@gmail.com>
|
Copyright 2022 Tetralux <tetraluxonpc@gmail.com>
|
||||||
Copyright 2022 Colin Davidson <colrdavidson@gmail.com>
|
Copyright 2022 Colin Davidson <colrdavidson@gmail.com>
|
||||||
@@ -10,12 +18,6 @@
|
|||||||
Jeroen van Rijn: Cross platform unification, code style, documentation
|
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:mem"
|
||||||
import "core:strings"
|
import "core:strings"
|
||||||
import "core:time"
|
import "core:time"
|
||||||
|
|||||||
@@ -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 <tetraluxonpc@gmail.com>
|
Copyright 2022 Tetralux <tetraluxonpc@gmail.com>
|
||||||
Copyright 2022 Colin Davidson <colrdavidson@gmail.com>
|
Copyright 2022 Colin Davidson <colrdavidson@gmail.com>
|
||||||
@@ -10,12 +18,6 @@
|
|||||||
Jeroen van Rijn: Cross platform unification, code style, documentation
|
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"
|
import "core:strings"
|
||||||
|
|
||||||
MAX_INTERFACE_ENUMERATION_TRIES :: 3
|
MAX_INTERFACE_ENUMERATION_TRIES :: 3
|
||||||
|
|||||||
@@ -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 <tetraluxonpc@gmail.com>
|
Copyright 2022-2023 Tetralux <tetraluxonpc@gmail.com>
|
||||||
Copyright 2022-2023 Colin Davidson <colrdavidson@gmail.com>
|
Copyright 2022-2023 Colin Davidson <colrdavidson@gmail.com>
|
||||||
@@ -10,12 +18,6 @@
|
|||||||
Jeroen van Rijn: Cross platform unification, code style, documentation
|
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 {
|
any_socket_to_socket :: proc(socket: Any_Socket) -> Socket {
|
||||||
switch s in socket {
|
switch s in socket {
|
||||||
case TCP_Socket: return Socket(s)
|
case TCP_Socket: return Socket(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user