diff options
Diffstat (limited to 'lib/websocket')
34 files changed, 119 insertions, 69 deletions
diff --git a/lib/websocket/AUTOBAHN.adoc b/lib/websocket/AUTOBAHN.adoc index e9039b90..b45c5bea 100644 --- a/lib/websocket/AUTOBAHN.adoc +++ b/lib/websocket/AUTOBAHN.adoc @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause + = Autobahn WebSocket Testsuite Status Report This document track the status report from autobahn testsuite [1]. diff --git a/lib/websocket/AUTOBAHN.html b/lib/websocket/AUTOBAHN.html index c46d67ae..f90e47aa 100644 --- a/lib/websocket/AUTOBAHN.html +++ b/lib/websocket/AUTOBAHN.html @@ -1,3 +1,9 @@ +<!-- +SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> + +SPDX-License-Identifier: BSD-3-Clause +--> + <!DOCTYPE html> <html> <head> diff --git a/lib/websocket/BENCHMARK.html b/lib/websocket/BENCHMARK.html index 93ea2c24..960c1a74 100644 --- a/lib/websocket/BENCHMARK.html +++ b/lib/websocket/BENCHMARK.html @@ -1,3 +1,9 @@ +<!-- +SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> + +SPDX-License-Identifier: BSD-3-Clause +--> + <!DOCTYPE html> <html> <head> diff --git a/lib/websocket/BENCHMARK.md b/lib/websocket/BENCHMARK.md index d9aabaa1..0b6c4ee2 100644 --- a/lib/websocket/BENCHMARK.md +++ b/lib/websocket/BENCHMARK.md @@ -1,3 +1,9 @@ +<!-- +SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> + +SPDX-License-Identifier: BSD-3-Clause +--> + This note document a benchmark between gobwas vs our websocket library. # github.com/gobwas/ws@v0.1.0 diff --git a/lib/websocket/clientmanager_test.go b/lib/websocket/clientmanager_test.go index cb815fe1..41a12f3b 100644 --- a/lib/websocket/clientmanager_test.go +++ b/lib/websocket/clientmanager_test.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/closecode.go b/lib/websocket/closecode.go index 15236c18..8ba7dc4e 100644 --- a/lib/websocket/closecode.go +++ b/lib/websocket/closecode.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/contextkey.go b/lib/websocket/contextkey.go index 93e020d5..7f338366 100644 --- a/lib/websocket/contextkey.go +++ b/lib/websocket/contextkey.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/doc.go b/lib/websocket/doc.go index dbe3792a..932fc2ad 100644 --- a/lib/websocket/doc.go +++ b/lib/websocket/doc.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Package websocket provide a library for WebSocket server or client based on // [RFC6455]. diff --git a/lib/websocket/examples/README.adoc b/lib/websocket/examples/README.adoc index da90ea8b..e50f2931 100644 --- a/lib/websocket/examples/README.adoc +++ b/lib/websocket/examples/README.adoc @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause + == WebSocket examples This package contains an example of chat server and client written using diff --git a/lib/websocket/examples/README.html b/lib/websocket/examples/README.html index 71aec923..88dcc3ba 100644 --- a/lib/websocket/examples/README.html +++ b/lib/websocket/examples/README.html @@ -1,3 +1,9 @@ +<!-- +SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> + +SPDX-License-Identifier: BSD-3-Clause +--> + <!DOCTYPE html> <html> <head> diff --git a/lib/websocket/examples/account.go b/lib/websocket/examples/account.go index 17b50668..372071e1 100644 --- a/lib/websocket/examples/account.go +++ b/lib/websocket/examples/account.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package examples diff --git a/lib/websocket/examples/cmd/client/main.go b/lib/websocket/examples/cmd/client/main.go index 0ecd9a87..326a5c82 100644 --- a/lib/websocket/examples/cmd/client/main.go +++ b/lib/websocket/examples/cmd/client/main.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Program client provide an example of chat client that connect to WebSocket // server. diff --git a/lib/websocket/examples/cmd/server/main.go b/lib/websocket/examples/cmd/server/main.go index 96d09a9a..6ccd5fc6 100644 --- a/lib/websocket/examples/cmd/server/main.go +++ b/lib/websocket/examples/cmd/server/main.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Program server provide an example of WebSocket server as group chat. // The client that connect to the server must be authenticated using key. diff --git a/lib/websocket/examples/examples.go b/lib/websocket/examples/examples.go index 34c926e7..458b1dc1 100644 --- a/lib/websocket/examples/examples.go +++ b/lib/websocket/examples/examples.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Package examples provide an example on how to use WebSocket server and // client. diff --git a/lib/websocket/frames.go b/lib/websocket/frames.go index 018c0b89..1c924920 100644 --- a/lib/websocket/frames.go +++ b/lib/websocket/frames.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/funcs_test.go b/lib/websocket/funcs_test.go index a8c9acf3..ff2d8ecf 100644 --- a/lib/websocket/funcs_test.go +++ b/lib/websocket/funcs_test.go @@ -1,6 +1,6 @@ -// Copyright 2023, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/handler.go b/lib/websocket/handler.go index 50cd74cf..d3778260 100644 --- a/lib/websocket/handler.go +++ b/lib/websocket/handler.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/handshake_test.go b/lib/websocket/handshake_test.go index 9ef51410..55cf35ab 100644 --- a/lib/websocket/handshake_test.go +++ b/lib/websocket/handshake_test.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/internal/autobahn/Makefile b/lib/websocket/internal/autobahn/Makefile index 24883c94..d51e9ddd 100644 --- a/lib/websocket/internal/autobahn/Makefile +++ b/lib/websocket/internal/autobahn/Makefile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info> +# +# SPDX-License-Identifier: BSD-3-Clause + ## ## Run autobahn client to test our server. ## diff --git a/lib/websocket/internal/autobahn/autobahn.go b/lib/websocket/internal/autobahn/autobahn.go index 01c89481..ccdc392d 100644 --- a/lib/websocket/internal/autobahn/autobahn.go +++ b/lib/websocket/internal/autobahn/autobahn.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause + // Package autobahn provides an helper to parse and print reports from // result of Autobahn test suite. package autobahn diff --git a/lib/websocket/internal/autobahn/client/fuzzingserver.json.license b/lib/websocket/internal/autobahn/client/fuzzingserver.json.license new file mode 100644 index 00000000..4c22e3a9 --- /dev/null +++ b/lib/websocket/internal/autobahn/client/fuzzingserver.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> + +SPDX-License-Identifier: BSD-3-Clause diff --git a/lib/websocket/internal/autobahn/client/main.go b/lib/websocket/internal/autobahn/client/main.go index 0966c2ad..12b4302c 100644 --- a/lib/websocket/internal/autobahn/client/main.go +++ b/lib/websocket/internal/autobahn/client/main.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Package client provide a program to test WebSocket client implementation // with autobahn testsuite. diff --git a/lib/websocket/internal/autobahn/server/fuzzingclient.json.license b/lib/websocket/internal/autobahn/server/fuzzingclient.json.license new file mode 100644 index 00000000..4c22e3a9 --- /dev/null +++ b/lib/websocket/internal/autobahn/server/fuzzingclient.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> + +SPDX-License-Identifier: BSD-3-Clause diff --git a/lib/websocket/internal/autobahn/server/main.go b/lib/websocket/internal/autobahn/server/main.go index 78c45624..1b00b28c 100644 --- a/lib/websocket/internal/autobahn/server/main.go +++ b/lib/websocket/internal/autobahn/server/main.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause // Package server provide a program for testing WebSocket server implement // with autobahn testsuite. diff --git a/lib/websocket/opcode.go b/lib/websocket/opcode.go index 0001b017..5fe190cd 100644 --- a/lib/websocket/opcode.go +++ b/lib/websocket/opcode.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/request_test.go b/lib/websocket/request_test.go index d8dd7372..bdebd720 100644 --- a/lib/websocket/request_test.go +++ b/lib/websocket/request_test.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/response_test.go b/lib/websocket/response_test.go index 642cfe79..bfcf275f 100644 --- a/lib/websocket/response_test.go +++ b/lib/websocket/response_test.go @@ -1,6 +1,6 @@ -// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/rootroute.go b/lib/websocket/rootroute.go index 0d2f6027..12f5a67e 100644 --- a/lib/websocket/rootroute.go +++ b/lib/websocket/rootroute.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/rootroute_test.go b/lib/websocket/rootroute_test.go index 29c861ab..74bf0ba7 100644 --- a/lib/websocket/rootroute_test.go +++ b/lib/websocket/rootroute_test.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/route.go b/lib/websocket/route.go index 51d16c45..90960482 100644 --- a/lib/websocket/route.go +++ b/lib/websocket/route.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/server_bench_test.go b/lib/websocket/server_bench_test.go index d63b7c57..4e0d0ef2 100644 --- a/lib/websocket/server_bench_test.go +++ b/lib/websocket/server_bench_test.go @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause + // This benchmark is taken from github.com/gobwas/ws [1][2]. // // [1] https://github.com/gobwas/ws/blob/master/server_test.go diff --git a/lib/websocket/server_options.go b/lib/websocket/server_options.go index 0c169188..e736d19a 100644 --- a/lib/websocket/server_options.go +++ b/lib/websocket/server_options.go @@ -1,6 +1,6 @@ -// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/server_test.go b/lib/websocket/server_test.go index fe8d640a..cbce1f44 100644 --- a/lib/websocket/server_test.go +++ b/lib/websocket/server_test.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket diff --git a/lib/websocket/targetparam.go b/lib/websocket/targetparam.go index bbebe230..b8b5ab32 100644 --- a/lib/websocket/targetparam.go +++ b/lib/websocket/targetparam.go @@ -1,6 +1,6 @@ -// Copyright 2018, Shulhan <ms@kilabit.info>. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. +// SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> +// +// SPDX-License-Identifier: BSD-3-Clause package websocket |
