|
@@ -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 <[email protected]>
|
|
|
Copyright 2022-2023 Colin Davidson <[email protected]>
|
|
@@ -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)
|