Method |
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 |
|