C# Class KIO.Connection

Inheritance: Qyoto.QObject, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
Connection ( Type dummy ) : System
CreateProxy ( ) : void

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

ConnectToRemote() public méthode

Connects to the remote address.
public ConnectToRemote ( string address ) : void
address string
Résultat void

Connection() public méthode

public Connection ( ) : System
Résultat System

Connection() public méthode

Creates a new connection.
public Connection ( QObject parent ) : System
parent Qyoto.QObject
Résultat System

Connection() protected méthode

protected Connection ( Type dummy ) : System
dummy System.Type
Résultat System

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ErrorString() public méthode

public ErrorString ( ) : string
Résultat string

HasTaskAvailable() public méthode

Returns true if there are packets to be read immediately, false if waitForIncomingTask must be called before more data is available.
public HasTaskAvailable ( ) : bool
Résultat bool

Inited() public méthode

Checks whether the connection has been initialized.
public Inited ( ) : bool
Résultat bool

IsConnected() public méthode

public IsConnected ( ) : bool
Résultat bool

Read() public méthode

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
Résultat int

Resume() public méthode

Resume handling of incoming data.
public Resume ( ) : void
Résultat void

Send() public méthode

public Send ( int cmd ) : bool
cmd int
Résultat bool

Send() public méthode

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
Résultat bool

Sendnow() public méthode

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
Résultat bool

Suspend() public méthode

Don't handle incoming data until resumed.
public Suspend ( ) : void
Résultat void

Suspended() public méthode

Returns status of connection.
public Suspended ( ) : bool
Résultat bool

WaitForIncomingTask() public méthode

public WaitForIncomingTask ( ) : bool
Résultat bool

WaitForIncomingTask() public méthode

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
Résultat bool