Beispiel #1
0
        protected virtual void OnConnectionDisconnected(ConnectionType ct)
        {
            BridgeAcceptor.OnConnectionDisconnected(this, ct);

            switch (ct)
            {
            case ConnectionType.ClientBridge:
                if (SocketCouple.BridgeSQLSocket.Connected)
                {
                    SocketCouple.BridgeSQLSocket.Disconnect(false);
                }
                break;

            case ConnectionType.BridgeSQL:
                if (SocketCouple.ClientBridgeSocket.Connected)
                {
                    SocketCouple.ClientBridgeSocket.Disconnect(false);
                }
                break;
            }
        }
Beispiel #2
0
 public BridgedConnection(BridgeAcceptor BridgeAcceptor, SocketCouple SocketCouple)
 {
     this.BridgeAcceptor = BridgeAcceptor;
     this.SocketCouple   = SocketCouple;
 }
Beispiel #3
0
 protected virtual void OnTDSPacketReceived(Packet.TDSPacket packet)
 {
     BridgeAcceptor.OnTDSMessageReceived(this, packet);
 }
Beispiel #4
0
 protected virtual void OnBridgeException(ConnectionType ct, Exception exce)
 {
     BridgeAcceptor.OnBridgeException(this, ct, exce);
 }
Beispiel #5
0
 protected virtual void OnTDSMessageReceived(Message.TDSMessage msg)
 {
     BridgeAcceptor.OnTDSMessageReceived(this, msg);
 }