Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ServerSession Class

Namespace: Rebex.Net.Servers
Assembly: Rebex.FileServer.dll (version 8.0.9673)

Represents a protocol session.

Syntax
public class ServerSession : IAsyncDisposable
Inheritance
Object
ServerSession
Implements
IAsyncDisposable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Properties

Name Description
Cipher

Gets the active SSH cipher. Only valid for SSH-based protocols (see IsSsh) such as SFTP, SSH shell or SCP.

ClientAddress

Gets the client's IP address.

ClientEndPoint

Gets the client-side endpoint of the client's connection.

ClientSoftwareIdentifier

Gets identifier of the client software. Always available with SSH-based protocols (see IsSsh) such as SFTP, SSH shell or SCP. When FTP is in use, client software identifier is only available with FTP clients that use optional CSID or CLNT commands.

Context

Gets custom context object assigned in Connecting, PreAuthentication or Authentication events.

Current

Gets the current session within which the current code is executed, or null if not within session.

Duration

Gets the current duration of the session.

Id

Gets session ID.

IsFtp

Returns a value indicating whether this is an FTP protocol session.

IsSsh

Returns a value indicating whether this is an SSH protocol session.

LastActivity

Gets the time of the last activity of the session.

ServerAddress

Gets the server-side IP address of the client's connection.

ServerEndPoint

Gets the server-side endpoint of the client's connection.

State

Gets the current state of the session.

TlsCipher

Gets the active TLS cipher. Only valid for FTP protocol (see IsFtp). Represents the cipher used by the session's control connection.

User

Gets the current session user.

UserName

Gets the current session user name.

Methods

Name Description
Close()

Initiates the process to close the ServerSession. Does not wait for result.

CloseAsync()

Asynchronously closes the ServerSession.

DisposeAsync()

Asynchronously disposes the ServerSession.

GetRemoteInfo()

Gets info about remote side's cipher support.

SendMessage(String)

Sends a message to this session.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies