public bool UpdateConnection(IPEndPoint endpoint, SocketConnectionInfo connInfo, out SocketConnection updatedConnection)
 {
     updatedConnection = GetConnection(endpoint);
     if (updatedConnection != null)
     {
         updatedConnection.UpdateConnectionInfo(connInfo);
         SocketLog.Info("Sucessfully updated connection {0} with new connection information.", endpoint);
         return(true);
     }
     SocketLog.Error("Failed to update connection {0} with new connection information. Connection not found in Socket Interface!", endpoint);
     return(false);
 }
 public bool PurgePendingConnection(SocketConnection connection)
 {
     return(RemovePendingConnection(connection) && ClearConnection(connection));
 }
 public void Send(string msgId, object obj, SocketConnection conn, SendOptions qosType)
 {
     Send(msgId, ToByteArray(obj), conn.ConnectionInfo.Peer, qosType);
 }