Skip to content

Client events

Mathias Cloet edited this page Feb 6, 2020 · 4 revisions
/// <summary>
/// Event that is triggered when the client receives an object from the server.
/// </summary>
public event ObjectReceivedDelegate ObjectReceived;

/// <summary>
/// Gives insight in the state of the current FileTransfer to the server.
/// Format = Socket,OriginFile,RemoteSaveLocFile,PercentageDone,MessageState
/// </summary>
public event MessageUpdateFileTransferDelegate MessageUpdateFileTransfer;

/// <summary>
/// Gives insight in the state of the current message.
/// </summary>
public event MessageUpdateDelegate MessageUpdate;

/// <summary>
/// Event that is triggered when a client receives a file or a part of a file.
/// Format = Socket,CurrentPart,TotalParts,PathToOutput,MessageState
/// </summary>
public event FileReceiverDelegate FileReceiver;

/// <summary>
/// Event that is triggered when a client receives a folder or a part of a folder.
/// Format = Socket,CurrentPart,TotalParts,PathToOutput,MessageState
/// </summary>
public event FolderReceiverDelegate FolderReceiver;

/// <summary>
/// Event that is triggered when the client successfully has submitted a transmission of data.
/// Format is ID:CLOSE
/// The bool represents if the client has terminated after the message.
/// </summary>
public event MessageSubmittedDelegate MessageSubmitted;

/// <summary>
/// Event that is triggered when the client has disconnected from the server.
/// Format = SimpleSocketClient
/// </summary>
public event DisconnectedFromServerDelegate DisconnectedFromServer;

/// <summary>
/// Event that is triggered when a client fails to send a message to the server
/// Format = SimpleSocketClient:MessageType:MessageBytes,Exception
/// </summary>
public event MessageFailedDelegate MessageFailed;

/// <summary>
/// Event that is triggered when a client gives an error.
/// </summary>
public event ClientErrorThrownDelegate ClientErrorThrown;

/// <summary>
/// Event that receives logs.
/// </summary>
public event ClientLogsDelegate ClientLogs;
Clone this wiki locally