From 553ee4292a05549058d88010858d20f562cbbb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darko=20Juri=C4=87?= Date: Fri, 29 Dec 2017 02:12:07 +0100 Subject: [PATCH] Changing licence. --- Samples/ClientJs/Program.cs | 2 +- Samples/MultiService/Program.cs | 2 +- Samples/README.md | 2 +- Samples/RawMsgJs/Program.cs | 3 ++- Samples/SampleBase/AppExit.cs | 1 - Samples/Serialization/Program.cs | 2 +- Samples/ServerClientSample/Client/Program.cs | 2 +- Samples/ServerClientSample/Server/Program.cs | 2 +- .../WebSocketRPC.Base/ClientServer/ArraySegmentExtensions.cs | 2 +- Source/WebSocketRPC.Base/ClientServer/Client.cs | 2 +- Source/WebSocketRPC.Base/ClientServer/Connection.cs | 2 +- Source/WebSocketRPC.Base/Invokers/LocalInvoker.cs | 2 +- Source/WebSocketRPC.Base/Invokers/Messages.cs | 2 +- Source/WebSocketRPC.Base/Invokers/RemoteInvoker.cs | 2 +- Source/WebSocketRPC.Base/RPC.cs | 2 +- Source/WebSocketRPC.Base/RPCSettings.cs | 2 +- Source/WebSocketRPC.Base/RpcBinders/Base/Binder.cs | 2 +- Source/WebSocketRPC.Base/RpcBinders/LocalBinder.cs | 2 +- Source/WebSocketRPC.Base/RpcBinders/RemoteBinder.cs | 2 +- Source/WebSocketRPC.JS/Components/JsCallerGenerator.cs | 2 +- Source/WebSocketRPC.JS/Components/JsDocGenerator.cs | 2 +- Source/WebSocketRPC.JS/RPCJs.cs | 2 +- Source/WebSocketRPC.JS/RPCJsSettings.cs | 2 +- Source/WebsocketRPC.Standalone/ClientServer/Server.cs | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Samples/ClientJs/Program.cs b/Samples/ClientJs/Program.cs index 58974c8..1b5c825 100644 --- a/Samples/ClientJs/Program.cs +++ b/Samples/ClientJs/Program.cs @@ -44,7 +44,7 @@ public async Task LongRunningTask(int a, int b) class Program { - //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'ocalhost', add for public address) + //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'localhost', add for public address) //open Index.html to run the client static void Main(string[] args) { diff --git a/Samples/MultiService/Program.cs b/Samples/MultiService/Program.cs index 629b603..88a21db 100644 --- a/Samples/MultiService/Program.cs +++ b/Samples/MultiService/Program.cs @@ -42,7 +42,7 @@ public string Add(string a, string b) class Program { - //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'ocalhost', add for public address) + //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'localhost', add for public address) //open Index.html to run the client static void Main(string[] args) { diff --git a/Samples/README.md b/Samples/README.md index ee2ffbe..d8985a0 100644 --- a/Samples/README.md +++ b/Samples/README.md @@ -35,5 +35,5 @@ The recommendation is to run samples in the following order (from the more simpl *Server has reporting service initiatted and stopped on the client's request.* **Remarks** -+ If a sample contains JavaScript client, an additional step requires opening the included *'Index.html'*. ++ If a sample contains JavaScript client, open the corresponding *'Index.html'*. + Samples that contain multiple executables have *'Run.bat'* for one-click run. diff --git a/Samples/RawMsgJs/Program.cs b/Samples/RawMsgJs/Program.cs index 0957e2a..353e81e 100644 --- a/Samples/RawMsgJs/Program.cs +++ b/Samples/RawMsgJs/Program.cs @@ -12,7 +12,7 @@ class MessagingAPI class Program { - //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'ocalhost', add for public address) + //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'localhost', add for public address) //open Index.html to run the client static void Main(string[] args) { @@ -37,6 +37,7 @@ static void Main(string[] args) { var txt = msg.ToString(RPCSettings.Encoding); Console.WriteLine("Received: " + txt); + await c.SendAsync("Server received: " + txt, RPCSettings.Encoding); if (txt.ToLower() == "close") diff --git a/Samples/SampleBase/AppExit.cs b/Samples/SampleBase/AppExit.cs index 2645afe..ab481b5 100644 --- a/Samples/SampleBase/AppExit.cs +++ b/Samples/SampleBase/AppExit.cs @@ -35,7 +35,6 @@ static void waitTasks(Task[] tasks) { try { - //wait for the competition foreach (var t in tasks) //enables exception handling t.Wait(); } diff --git a/Samples/Serialization/Program.cs b/Samples/Serialization/Program.cs index d9d67e2..274c9d0 100644 --- a/Samples/Serialization/Program.cs +++ b/Samples/Serialization/Program.cs @@ -72,7 +72,7 @@ unsafe Bgr swapChannels(Bgr c, int[] order) class Program { - //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'ocalhost', add for public address) + //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'localhost', add for public address) //open Index.html to run the client static void Main(string[] args) { diff --git a/Samples/ServerClientSample/Client/Program.cs b/Samples/ServerClientSample/Client/Program.cs index 47d7fce..2c8abcf 100644 --- a/Samples/ServerClientSample/Client/Program.cs +++ b/Samples/ServerClientSample/Client/Program.cs @@ -22,7 +22,7 @@ public void WriteProgress(float progress) public class Program { - //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'ocalhost', add for public address) + //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'localhost', add for public address) static void Main(string[] args) { //Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); diff --git a/Samples/ServerClientSample/Server/Program.cs b/Samples/ServerClientSample/Server/Program.cs index b11d768..3e5814d 100644 --- a/Samples/ServerClientSample/Server/Program.cs +++ b/Samples/ServerClientSample/Server/Program.cs @@ -27,7 +27,7 @@ public async Task LongRunningTask(int a, int b) public class Program { - //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'ocalhost', add for public address) + //if access denied execute: "netsh http delete urlacl url=http://+:8001/" (delete for 'localhost', add for public address) static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Red; diff --git a/Source/WebSocketRPC.Base/ClientServer/ArraySegmentExtensions.cs b/Source/WebSocketRPC.Base/ClientServer/ArraySegmentExtensions.cs index b6087e5..297c352 100644 --- a/Source/WebSocketRPC.Base/ClientServer/ArraySegmentExtensions.cs +++ b/Source/WebSocketRPC.Base/ClientServer/ArraySegmentExtensions.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/ClientServer/Client.cs b/Source/WebSocketRPC.Base/ClientServer/Client.cs index f652c2d..29bec71 100644 --- a/Source/WebSocketRPC.Base/ClientServer/Client.cs +++ b/Source/WebSocketRPC.Base/ClientServer/Client.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/ClientServer/Connection.cs b/Source/WebSocketRPC.Base/ClientServer/Connection.cs index 2ce4b41..f3067ae 100644 --- a/Source/WebSocketRPC.Base/ClientServer/Connection.cs +++ b/Source/WebSocketRPC.Base/ClientServer/Connection.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/Invokers/LocalInvoker.cs b/Source/WebSocketRPC.Base/Invokers/LocalInvoker.cs index 146aede..86a4e77 100644 --- a/Source/WebSocketRPC.Base/Invokers/LocalInvoker.cs +++ b/Source/WebSocketRPC.Base/Invokers/LocalInvoker.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/Invokers/Messages.cs b/Source/WebSocketRPC.Base/Invokers/Messages.cs index cbc86c9..bd3db2a 100644 --- a/Source/WebSocketRPC.Base/Invokers/Messages.cs +++ b/Source/WebSocketRPC.Base/Invokers/Messages.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/Invokers/RemoteInvoker.cs b/Source/WebSocketRPC.Base/Invokers/RemoteInvoker.cs index 542e702..02bdfb6 100644 --- a/Source/WebSocketRPC.Base/Invokers/RemoteInvoker.cs +++ b/Source/WebSocketRPC.Base/Invokers/RemoteInvoker.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/RPC.cs b/Source/WebSocketRPC.Base/RPC.cs index 4d1a692..ea06077 100644 --- a/Source/WebSocketRPC.Base/RPC.cs +++ b/Source/WebSocketRPC.Base/RPC.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/RPCSettings.cs b/Source/WebSocketRPC.Base/RPCSettings.cs index 6bc9c99..618617c 100644 --- a/Source/WebSocketRPC.Base/RPCSettings.cs +++ b/Source/WebSocketRPC.Base/RPCSettings.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/RpcBinders/Base/Binder.cs b/Source/WebSocketRPC.Base/RpcBinders/Base/Binder.cs index 0f37be9..097a931 100644 --- a/Source/WebSocketRPC.Base/RpcBinders/Base/Binder.cs +++ b/Source/WebSocketRPC.Base/RpcBinders/Base/Binder.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/RpcBinders/LocalBinder.cs b/Source/WebSocketRPC.Base/RpcBinders/LocalBinder.cs index 91e73af..df51729 100644 --- a/Source/WebSocketRPC.Base/RpcBinders/LocalBinder.cs +++ b/Source/WebSocketRPC.Base/RpcBinders/LocalBinder.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.Base/RpcBinders/RemoteBinder.cs b/Source/WebSocketRPC.Base/RpcBinders/RemoteBinder.cs index a9e3501..d4cacdb 100644 --- a/Source/WebSocketRPC.Base/RpcBinders/RemoteBinder.cs +++ b/Source/WebSocketRPC.Base/RpcBinders/RemoteBinder.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.JS/Components/JsCallerGenerator.cs b/Source/WebSocketRPC.JS/Components/JsCallerGenerator.cs index 5db2aeb..9c52d60 100644 --- a/Source/WebSocketRPC.JS/Components/JsCallerGenerator.cs +++ b/Source/WebSocketRPC.JS/Components/JsCallerGenerator.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.JS/Components/JsDocGenerator.cs b/Source/WebSocketRPC.JS/Components/JsDocGenerator.cs index 5de4ae1..83e5c1a 100644 --- a/Source/WebSocketRPC.JS/Components/JsDocGenerator.cs +++ b/Source/WebSocketRPC.JS/Components/JsDocGenerator.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.JS/RPCJs.cs b/Source/WebSocketRPC.JS/RPCJs.cs index 19ef08e..faf8f89 100644 --- a/Source/WebSocketRPC.JS/RPCJs.cs +++ b/Source/WebSocketRPC.JS/RPCJs.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebSocketRPC.JS/RPCJsSettings.cs b/Source/WebSocketRPC.JS/RPCJsSettings.cs index f68424d..47ac048 100644 --- a/Source/WebSocketRPC.JS/RPCJsSettings.cs +++ b/Source/WebSocketRPC.JS/RPCJsSettings.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation diff --git a/Source/WebsocketRPC.Standalone/ClientServer/Server.cs b/Source/WebsocketRPC.Standalone/ClientServer/Server.cs index ffc468c..becc900 100644 --- a/Source/WebsocketRPC.Standalone/ClientServer/Server.cs +++ b/Source/WebsocketRPC.Standalone/ClientServer/Server.cs @@ -1,5 +1,5 @@ #region License -// Copyright © 2017 Darko Jurić +// Copyright © 2018 Darko Jurić // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation