Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="client"></param>
        /// <param name="server"></param>
        /// <param name="binding"></param>
        /// <returns></returns>
        protected override sealed bool OnConnect(CANAPE.DataAdapters.IDataAdapter client, CANAPE.DataAdapters.IDataAdapter server, NetworkLayerBinding binding)
        {
            _clientEnum = ReadClientFrames(client).GetEnumerator();
            _serverEnum = ReadServerFrames(server).GetEnumerator();
            _client     = client;
            _server     = server;

            return(true);
        }
 /// <summary>
 /// Method called on Connect
 /// </summary>
 /// <param name="client">The client adapter</param>
 /// <param name="server">The server adapter</param>
 /// <param name="binding">Binding mode</param>
 protected override sealed bool OnConnect(CANAPE.DataAdapters.IDataAdapter client, CANAPE.DataAdapters.IDataAdapter server, NetworkLayerBinding binding)
 {
     return(OnConnect(new DataAdapterToStream(client), new DataAdapterToStream(server), binding));
 }