diff --git a/EonaCat.Network/EonaCat.Network.csproj b/EonaCat.Network/EonaCat.Network.csproj
index 8a29e46..19589ce 100644
--- a/EonaCat.Network/EonaCat.Network.csproj
+++ b/EonaCat.Network/EonaCat.Network.csproj
@@ -18,9 +18,9 @@
EonaCat, Network, .NET Standard, EonaCatHelpers, Jeroen, Saey, Protocol, Quic, UDP, TCP, Web, Server
EonaCat Networking library with Quic, TCP, UDP and a Webserver
- 1.0.5
- 1.0.0.5
- 1.0.0.5
+ 1.0.6
+ 1.0.0.6
+ 1.0.0.6
icon.png
diff --git a/EonaCat.Network/System/Sockets/RemoteInfo.cs b/EonaCat.Network/System/Sockets/RemoteInfo.cs
index 21f3405..347f1db 100644
--- a/EonaCat.Network/System/Sockets/RemoteInfo.cs
+++ b/EonaCat.Network/System/Sockets/RemoteInfo.cs
@@ -1,7 +1,7 @@
using System.Net;
using System.Net.Sockets;
-namespace EonaCat.Dns.Core.Sockets
+namespace EonaCat.Network
{
public class RemoteInfo
{
diff --git a/EonaCat.Network/System/Sockets/Tcp/SocketTcpClient.cs b/EonaCat.Network/System/Sockets/Tcp/SocketTcpClient.cs
index 6aa4e09..d110bdb 100644
--- a/EonaCat.Network/System/Sockets/Tcp/SocketTcpClient.cs
+++ b/EonaCat.Network/System/Sockets/Tcp/SocketTcpClient.cs
@@ -4,7 +4,7 @@ using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
-namespace EonaCat.Dns.Core.Sockets.Tcp
+namespace EonaCat.Network
{
public class SocketTcpClient
{
diff --git a/EonaCat.Network/System/Sockets/Tcp/SocketTcpServer.cs b/EonaCat.Network/System/Sockets/Tcp/SocketTcpServer.cs
index 9616d1a..5a08f29 100644
--- a/EonaCat.Network/System/Sockets/Tcp/SocketTcpServer.cs
+++ b/EonaCat.Network/System/Sockets/Tcp/SocketTcpServer.cs
@@ -3,7 +3,7 @@ using System.Net;
using System;
using System.Threading.Tasks;
-namespace EonaCat.Dns.Core.Sockets.Tcp
+namespace EonaCat.Network
{
public class SocketTcpServer
{
diff --git a/EonaCat.Network/System/Sockets/Udp/SocketUdpClient.cs b/EonaCat.Network/System/Sockets/Udp/SocketUdpClient.cs
index 3900ae1..7cd720d 100644
--- a/EonaCat.Network/System/Sockets/Udp/SocketUdpClient.cs
+++ b/EonaCat.Network/System/Sockets/Udp/SocketUdpClient.cs
@@ -3,7 +3,7 @@ using System.Net;
using System.Threading.Tasks;
using System;
-namespace EonaCat.Dns.Core.Sockets.Udp
+namespace EonaCat.Network
{
public class SocketUdpClient
{
@@ -78,7 +78,7 @@ namespace EonaCat.Dns.Core.Sockets.Udp
{
if (endPoint is IPEndPoint ipEndPoint)
{
- await udpClient.SendAsync(data, ipEndPoint).AsTask().ConfigureAwait(false);
+ await udpClient.SendAsync(data, data.Length, ipEndPoint).ConfigureAwait(false);
OnSend?.Invoke(endPoint, data);
}
}
diff --git a/EonaCat.Network/System/Sockets/Udp/SocketUdpServer.cs b/EonaCat.Network/System/Sockets/Udp/SocketUdpServer.cs
index 7c5aeb0..b2610a6 100644
--- a/EonaCat.Network/System/Sockets/Udp/SocketUdpServer.cs
+++ b/EonaCat.Network/System/Sockets/Udp/SocketUdpServer.cs
@@ -1,15 +1,11 @@
using System.Net.Sockets;
using System.Net;
-using System.Text;
using System;
using System.Runtime.InteropServices;
using System.Net.NetworkInformation;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.DataProtection;
-using static SQLite.SQLite3;
-using System.ComponentModel;
-namespace EonaCat.Dns.Core.Sockets.Udp
+namespace EonaCat.Network
{
public class SocketUdpServer
{
@@ -94,7 +90,7 @@ namespace EonaCat.Dns.Core.Sockets.Udp
{
if (endPoint is IPEndPoint ipEndPoint)
{
- await udpClient.SendAsync(data, ipEndPoint).AsTask().ConfigureAwait(false);
+ await udpClient.SendAsync(data, data.Length, ipEndPoint).ConfigureAwait(false);
OnSend?.Invoke(new RemoteInfo() { EndPoint = endPoint, Data = data, IsIpv6 = endPoint.AddressFamily == AddressFamily.InterNetworkV6 });
}
}