From cddab5f3afd3eca91bc63bb31d5490e7d9713e76 Mon Sep 17 00:00:00 2001 From: "Alecio Furanze (Ale)" Date: Mon, 1 Jul 2024 08:35:29 +0200 Subject: [PATCH] IUDP.ClientTo -> Remove impl. methods to send data and event to custom target (host) IUDP.ClientTo -> Remove impl. methods to send data and event to custom target (host) --- src/udp/partials/UDP.ClientTo.cs | 42 -------------------------------- 1 file changed, 42 deletions(-) diff --git a/src/udp/partials/UDP.ClientTo.cs b/src/udp/partials/UDP.ClientTo.cs index 745cff7f..15a653f9 100644 --- a/src/udp/partials/UDP.ClientTo.cs +++ b/src/udp/partials/UDP.ClientTo.cs @@ -128,20 +128,6 @@ public void Data(string data) Send(data.GetBytes()); } - public void Data(Host targetHost, byte[] data) - { - if (!IsOpened || targetHost == null || data == null) return; - - Send(targetHost, data); - } - - public void Data(Host targetHost, string data) - { - if (!IsOpened || targetHost == null || data == null) return; - - Send(targetHost, data.GetBytes()); - } - public void Data(string data, Encoding encoding) { if (!IsOpened || data == null) return; @@ -149,13 +135,6 @@ public void Data(string data, Encoding encoding) Send(data.GetBytes(encoding)); } - public void Data(Host targetHost, string data, Encoding encoding) - { - if (!IsOpened || targetHost == null || data == null) return; - - Send(targetHost, data.GetBytes(encoding)); - } - public void Event(string name, byte[] data) { if (!IsOpened || name == null || data == null) return; @@ -170,20 +149,6 @@ public void Event(string name, string data) Send(NetlyEnvironment.EventManager.Create(name, data.GetBytes())); } - public void Event(Host targetHost, string name, byte[] data) - { - if (!IsOpened || targetHost == null || name == null || data == null) return; - - Send(targetHost, NetlyEnvironment.EventManager.Create(name, data)); - } - - public void Event(Host targetHost, string name, string data) - { - if (!IsOpened || targetHost == null || name == null || data == null) return; - - Send(targetHost, NetlyEnvironment.EventManager.Create(name, data.GetBytes())); - } - public void Event(string name, string data, Encoding encoding) { if (!IsOpened || name == null || data == null) return; @@ -191,13 +156,6 @@ public void Event(string name, string data, Encoding encoding) Send(NetlyEnvironment.EventManager.Create(name, data.GetBytes(encoding))); } - public void Event(Host targetHost, string name, string data, Encoding encoding) - { - if (!IsOpened || targetHost == null || name == null || data == null) return; - - Send(targetHost, NetlyEnvironment.EventManager.Create(name, data.GetBytes(encoding))); - } - public void InitServerSide() { if (!_isServer || _initServerSide) return;