C# Class UlteriusAgent.Networking.AgentServer

Mostrar archivo Open project: Ulterius/server

Public Methods

Method Description
AcceptClientsAsync ( TcpListener listener, CancellationToken cancel ) : Task
CaptureDesktop ( ) : Bitmap
HandleClientAsync ( TcpClient client, CancellationToken cancel ) : Task
ImageToByte ( Image img, bool convertToJpeg = false ) : byte[]
Start ( ) : void

Private Methods

Method Description
HandleCtrlAltDel ( ) : void
HandleMouseDown ( ) : void
HandleMouseScroll ( string deltaString ) : void
HandleMouseUp ( ) : void
HandleRightClick ( ) : void
HandleRightDown ( ) : void
HandleRightUp ( ) : void
KeyDown ( string endpointArgs ) : void
Keyup ( string endpointArgs ) : void
MoveMouse ( int x, int y ) : void
SendCleanFrame ( ) : byte[]
SendFullFrame ( ) : byte[]

Method Details

AcceptClientsAsync() public static method

public static AcceptClientsAsync ( TcpListener listener, CancellationToken cancel ) : Task
listener System.Net.Sockets.TcpListener
cancel System.Threading.CancellationToken
return Task

CaptureDesktop() public static method

public static CaptureDesktop ( ) : Bitmap
return System.Drawing.Bitmap

HandleClientAsync() public static method

public static HandleClientAsync ( TcpClient client, CancellationToken cancel ) : Task
client System.Net.Sockets.TcpClient
cancel System.Threading.CancellationToken
return Task

ImageToByte() public static method

public static ImageToByte ( Image img, bool convertToJpeg = false ) : byte[]
img Image
convertToJpeg bool
return byte[]

Start() public static method

public static Start ( ) : void
return void