mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
Added getter
This commit is contained in:
@ -778,12 +778,23 @@ namespace Esyur.Net.IIP
|
||||
|
||||
|
||||
this.Socket.Hold();
|
||||
while (offset < ends)
|
||||
{
|
||||
offset = processPacket(msg, offset, ends, data, chunkId);
|
||||
}
|
||||
|
||||
this.Socket.Unhold();
|
||||
try
|
||||
{
|
||||
while (offset < ends)
|
||||
{
|
||||
offset = processPacket(msg, offset, ends, data, chunkId);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
Console.Beep();
|
||||
}
|
||||
finally
|
||||
{
|
||||
this.Socket.Unhold();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -445,8 +445,19 @@ namespace Esyur.Net.Sockets
|
||||
|
||||
public void Unhold()
|
||||
{
|
||||
DataSent(null);
|
||||
held = false;
|
||||
try
|
||||
{
|
||||
DataSent(null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
Console.Beep();
|
||||
}
|
||||
finally
|
||||
{
|
||||
held = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user