我已阅读与我的错误相同的所有其他问题,但这些问题并不适用于我的情况。
您好。最近我在游戏服务器中收到了一个非常奇怪的错误:
14:44:18 - Error sending message to socket: An established connection was aborted by the software in your host machine
14:44:18 - System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at Hariak_Emulator.Emulator.Base.Game.Habbo.Players.Players.GameClient.SendData(Byte[] data) in C:\Users\User\Desktop\EmuDev17\Hariak Emulator\Hariak Emulator\Emulator\Base\Game\Habbo\Players\Players\PlayerConnection.cs:line 264 System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.BeginSend(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at Hariak_Emulator.Emulator.Base.Game.Habbo.Players.Players.GameClient.SendData(Byte[] data) in C:\Users\User\Desktop\EmuDev17\Hariak Emulator\Hariak Emulator\Emulator\Base\Game\Habbo\Players\Players\PlayerConnection.cs:line 264
为什么这样,有人可以帮忙吗? 以下是它发生的代码(第264行PlayerConnection):
internal void SendData(byte[] data)
{
try
{
_socket.BeginSend(data, 0, data.Length, 0, OnSend, null);
}
catch (SocketException socketException)
{
Logger.Error("Error sending message to socket: " + socketException.Message);
Logger.Error(socketException);
Dispose();
}
}