C# Класс Fuzzer.RemoteControl.RemoteControlProtocol

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
RegisterHandler ( string receiver, HandlerCallbackDelegate handlerCallback ) : void
RemoteControlProtocol ( ) : System
RemoteEcho ( string echoString ) : void
RemoteExec ( string name, string path, IList arguments, IList environment ) : void

Starts the specified application (path) on the remote path

RemoteProcesses ( ) : void

Requests the remote running processes

RemoteRequestPipe ( string pipeName ) : void

Opens a remote pipe and sends all received data

SendCommand ( RemoteCommand cmd ) : void
SetConnection ( Stream conn ) : void

Приватные методы

Метод Описание
CBRead ( IAsyncResult ar ) : void
FindFirstOccurance ( int startIndex, byte data ) : int?

Finds the first occurance of data in the buffer

GetPipeName ( int pipeId ) : string
HandlerExecStatus ( string receiver, byte data ) : void
HandlerPipeClosed ( string receiver, byte data ) : void
HandlerPipeData ( string receiver, byte data ) : void

Pipe data was sent

HandlerRegisteredPipe ( string receiver, byte data ) : void

And pipe request was sent. This assigns a unique id to the requested pipe

HandlerRemoteProcesses ( string receiver, byte data ) : void
ProcessBuffer ( ) : void

Extracts and removes complete received packets from the buffer

RaiseExecStatus ( string name, int pid, int status ) : void
RaisePipeClosed ( int pipeId ) : void
RaisePipeData ( int pipeId, byte pipeData, int index, int offset ) : void
RaisePipeOpened ( int pipeId ) : void
RaiseRemoteProcessInfo ( RemoteProcessInfo remoteProcesses ) : void
SendPacket ( string receiver, byte data ) : void
StartReading ( ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

RegisterHandler() публичный Метод

public RegisterHandler ( string receiver, HandlerCallbackDelegate handlerCallback ) : void
receiver string
handlerCallback HandlerCallbackDelegate
Результат void

RemoteControlProtocol() публичный Метод

public RemoteControlProtocol ( ) : System
Результат System

RemoteEcho() публичный Метод

public RemoteEcho ( string echoString ) : void
echoString string
Результат void

RemoteExec() публичный Метод

Starts the specified application (path) on the remote path
public RemoteExec ( string name, string path, IList arguments, IList environment ) : void
name string Name can be chosen freely and is always used when this program instance is referenced
path string Path to start
arguments IList Arguments to pass to the application
environment IList Environment variables to set in the form variable=value
Результат void

RemoteProcesses() публичный Метод

Requests the remote running processes
public RemoteProcesses ( ) : void
Результат void

RemoteRequestPipe() публичный Метод

Opens a remote pipe and sends all received data
public RemoteRequestPipe ( string pipeName ) : void
pipeName string
Результат void

SendCommand() публичный Метод

public SendCommand ( RemoteCommand cmd ) : void
cmd RemoteCommand
Результат void

SetConnection() публичный Метод

public SetConnection ( Stream conn ) : void
conn Stream
Результат void