/// <summary> /// Disconnect the connection specified by endpoint /// </summary> /// <param name="endpoint">The endpoint</param> public override void Disconnect(FsEndpoint endpoint) { CifsServerPerConnection connection = this.cifsServer.Context.ConnectionTable[endpoint.NetBiosEndpoint]; this.cifsServer.Disconnect(connection); this.fsEndpoints.Remove(endpoint.NetBiosEndpoint); }
/// <summary> /// Expect tcp or netbios connection /// </summary> /// <param name="timeout">Timeout</param> /// <returns>The endpoint of client</returns> public override FsEndpoint ExpectConnect(TimeSpan timeout) { CifsServerPerConnection connection = this.cifsServer.ExpectConnect(timeout); FsEndpoint fsEndpoint = new FsEndpoint((int)connection.Identity); this.fsEndpoints.Add(fsEndpoint.NetBiosEndpoint, fsEndpoint); return(fsEndpoint); }
/// <summary> /// Expect tcp disconnect or netbios disconnect /// </summary> /// <param name="timeout">timeout</param> /// <returns>The endpoint of client</returns> public override FsEndpoint ExpectDisconnect(TimeSpan timeout) { object identify = this.cifsServer.ExpectDisconnect(timeout); FsEndpoint fsEndpoint = this.fsEndpoints[identify]; this.fsEndpoints.Remove(identify); return(fsEndpoint); }
/// <summary> /// Expect tcp or netbios connection /// </summary> /// <param name="timeout">Timeout</param> /// <returns>The endpoint of client</returns> public override FsEndpoint ExpectConnect(TimeSpan timeout) { CifsServerPerConnection connection = this.cifsServer.ExpectConnect(timeout); FsEndpoint fsEndpoint = new FsEndpoint((int)connection.Identity); this.fsEndpoints.Add(fsEndpoint.NetBiosEndpoint, fsEndpoint); return fsEndpoint; }
/// <summary> /// Disconnect the connection specified by endpoint /// </summary> /// <param name="endpoint">The endpoint</param> public override void Disconnect(FsEndpoint endpoint) { CifsServerPerConnection connection = this.cifsServer.Context.ConnectionTable[endpoint.NetBiosEndpoint]; this.cifsServer.Disconnect(connection); this.fsEndpoints.Remove(endpoint.NetBiosEndpoint); }