pull/1/head
Ogoun 5 years ago
parent 138cfc652e
commit 8faa55fb17

@ -87,6 +87,7 @@ namespace ZeroLevel.SqlServer
} }
return (T)Convert.ChangeType(reader.ItemArray[index], typeof(T)); return (T)Convert.ChangeType(reader.ItemArray[index], typeof(T));
} }
public static T Read<T>(this DataRow reader, string name) public static T Read<T>(this DataRow reader, string name)
{ {
if (reader == null) return default; if (reader == null) return default;

@ -42,7 +42,6 @@ namespace ZeroLevel.Network
#endregion #endregion
private Socket _clientSocket; private Socket _clientSocket;
private AsyncCallback _receiveAsyncCallback;
private FrameParser _parser; private FrameParser _parser;
private readonly RequestBuffer _requests = new RequestBuffer(); private readonly RequestBuffer _requests = new RequestBuffer();
private readonly byte[] _buffer = new byte[DEFAULT_RECEIVE_BUFFER_SIZE]; private readonly byte[] _buffer = new byte[DEFAULT_RECEIVE_BUFFER_SIZE];
@ -77,7 +76,6 @@ namespace ZeroLevel.Network
Router = router; Router = router;
Endpoint = ep; Endpoint = ep;
_parser = new FrameParser(_parser_OnIncoming); _parser = new FrameParser(_parser_OnIncoming);
_receiveAsyncCallback = new AsyncCallback(ReceiveAsyncCallback);
Working(); Working();
@ -91,7 +89,6 @@ namespace ZeroLevel.Network
_clientSocket = socket; _clientSocket = socket;
Endpoint = (IPEndPoint)_clientSocket.RemoteEndPoint; Endpoint = (IPEndPoint)_clientSocket.RemoteEndPoint;
_parser = new FrameParser(_parser_OnIncoming); _parser = new FrameParser(_parser_OnIncoming);
_receiveAsyncCallback = new AsyncCallback(ReceiveAsyncCallback);
_socket_freezed = true; _socket_freezed = true;
Working(); Working();
@ -157,7 +154,6 @@ namespace ZeroLevel.Network
sf.identity = id; sf.identity = id;
sf.data = data; sf.data = data;
_send_queue.Add(sf); _send_queue.Add(sf);
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.