C# Класс KIO.Connection

Наследование: Qyoto.QObject, IDisposable
Показать файл Открыть проект

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

Метод Описание
Close ( ) : void
ConnectToRemote ( string address ) : void Connects to the remote address.
Connection ( ) : System
Connection ( QObject parent ) : System Creates a new connection.
Dispose ( ) : void
ErrorString ( ) : string
HasTaskAvailable ( ) : bool Returns true if there are packets to be read immediately, false if waitForIncomingTask must be called before more data is available.
Inited ( ) : bool Checks whether the connection has been initialized.
IsConnected ( ) : bool
Read ( int &_cmd, Qyoto.QByteArray data ) : int Receive data. name="_cmd" the received command will be written here name="data" the received data will be written here
Resume ( ) : void Resume handling of incoming data.
Send ( int cmd ) : bool
Send ( int cmd, Qyoto.QByteArray arr ) : bool Sends/queues the given command to be sent. name="cmd" the command to set name="arr" the bytes to send
Sendnow ( int _cmd, Qyoto.QByteArray data ) : bool Sends the given command immediately. name="_cmd" the command to set name="data" the bytes to send
Suspend ( ) : void Don't handle incoming data until resumed.
Suspended ( ) : bool Returns status of connection.
WaitForIncomingTask ( ) : bool
WaitForIncomingTask ( int ms ) : bool Waits for one more command to be handled and ready. name="ms" the time to wait in milliseconds

Защищенные методы

Метод Описание
Connection ( Type dummy ) : System
CreateProxy ( ) : void

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

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

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

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

Connects to the remote address.
public ConnectToRemote ( string address ) : void
address string
Результат void

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

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

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

Creates a new connection.
public Connection ( QObject parent ) : System
parent Qyoto.QObject
Результат System

Connection() защищенный Метод

protected Connection ( Type dummy ) : System
dummy System.Type
Результат System

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

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

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

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

public ErrorString ( ) : string
Результат string

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

Returns true if there are packets to be read immediately, false if waitForIncomingTask must be called before more data is available.
public HasTaskAvailable ( ) : bool
Результат bool

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

Checks whether the connection has been initialized.
public Inited ( ) : bool
Результат bool

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

public IsConnected ( ) : bool
Результат bool

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

Receive data. name="_cmd" the received command will be written here name="data" the received data will be written here
public Read ( int &_cmd, Qyoto.QByteArray data ) : int
_cmd int
data Qyoto.QByteArray
Результат int

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

Resume handling of incoming data.
public Resume ( ) : void
Результат void

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

public Send ( int cmd ) : bool
cmd int
Результат bool

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

Sends/queues the given command to be sent. name="cmd" the command to set name="arr" the bytes to send
public Send ( int cmd, Qyoto.QByteArray arr ) : bool
cmd int
arr Qyoto.QByteArray
Результат bool

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

Sends the given command immediately. name="_cmd" the command to set name="data" the bytes to send
public Sendnow ( int _cmd, Qyoto.QByteArray data ) : bool
_cmd int
data Qyoto.QByteArray
Результат bool

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

Don't handle incoming data until resumed.
public Suspend ( ) : void
Результат void

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

Returns status of connection.
public Suspended ( ) : bool
Результат bool

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

public WaitForIncomingTask ( ) : bool
Результат bool

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

Waits for one more command to be handled and ready. name="ms" the time to wait in milliseconds
public WaitForIncomingTask ( int ms ) : bool
ms int
Результат bool