/// <summary> /// Send the bytes over the connection. /// </summary> /// <param name="connection"></param> /// <param name="authentication"></param> private void SendAuthentication(SocketConnection connection, IConnectorAuthentication authentication) { var bytes = authentication.SendAuthentication(); var socket = connection.Socket; if (socket != null) { socket.Send(bytes); } }
/// <summary> /// Send the bytes over the connection. /// </summary> /// <param name="connection"></param> /// <param name="authentication"></param> private void SendAuthentication(SocketConnection connection, IConnectorAuthentication authentication) { var bytes = authentication.SendAuthentication(); connection.Socket.Send(bytes); }