You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
connectionHandle - TML connection handle
lProfiles - reference to profile identification list. The list has to be released with sidex_Variant_DecRef().
Extending the libTML connection management requires new API functions.
Goals of the new API
manage connections
TML_CONNECTION_HANDLE
new object to refer to connections
tml_Core_Connect
Create a new connection.
coreHandle - TML core handle
sAddress - network address
connectionHandle - reference to a new connection handle
tml_Connection_Close
Close a connection and release resources.
connectionHandle - reference to TML connection handle
tml_Connection_Get_Address
Returns the network address of remote peer.
connectionHandle - TML connection handle
sAddress - borrowed reference to network address
tml_Connection_Get_RemoteProfiles
Returns the remote peer supported profiles.
connectionHandle - TML connection handle
lProfiles - reference to profile identification list. The list has to be released with sidex_Variant_DecRef().
tml_Connection_Validate
Validate a connection.
connectionHandle - TML connection handle
bReconnect - TML_TRUE = try to reconnect if disconnected / TML_FALSE = don't try to reconnect
bConnected - TML_TRUE = connection is valid and connected, TML_FALSE = connection is closed
tml_Core_Get_ConnectionCount
Retruns the number of connections.
coreHandle - TML core handle
iCount - reference to the number of connections
tml_Core_Get_Connection
Get connection handle from a TML core.
coreHandle - TML core handle
index - index of connection
connectionHandle - reference to the connection handle
tml_Connection_SendAsync
Send async command on existing connection.
connectionHandle - TML connection handle
sProfile - profile identification string
cmdHandle - TML command handle
iTimeout - timeout in milliseconds
tml_Connection_SendSync
Send sync command on existing connection.
connectionHandle - TML connection handle
sProfile - profile identification string
cmdHandle - TML command handle
iTimeout - timeout in milliseconds
tml_Cmd_Get_Connection
Get the connection on which the command was previously sent/received.
cmdHandle - TML command handle
connectionHandle - reference to connection handle
tml_Core_Set_OnConnect
Set callback function to signal a new connection
coreHandle - TML core handle
pCBFunc - callback function or NULL to remove previously registered function
pCBData - custom data
tml_Core_Set_OnDisconnect
Set callback function to signal a disconnection.
coreHandle - TML core handle
pCBFunc - callback function or NULL to remove previously registered function
pCBData - custom data
TML_ON_CONNECT_CB_FUNC
Callback function to signal a new connection.
connectionHandle - TML connection handle
pCBData - custom data
TML_ON_DISCONNECT_CB_FUNC
Callback function to signal a closed connection.
connectionHandle - TML connection handle
pCBData - custom data
The text was updated successfully, but these errors were encountered: