OpenTok C SDK
|
Client connection. More...
Go to the source code of this file.
Typedefs | |
typedef struct otc_connection | otc_connection |
Functions | |
const char * | otc_connection_get_id (const otc_connection *connection) |
int64_t | otc_connection_get_creation_time (const otc_connection *connection) |
const char * | otc_connection_get_data (const otc_connection *connection) |
const char * | otc_connection_get_session_id (const otc_connection *connection) |
otc_connection * | otc_connection_copy (const otc_connection *connection) |
otc_status | otc_connection_delete (otc_connection *connection) |
Client connection.
This file includes the type definition for a connection structure, representing a client connected to an OpenTok session, along with several function declarations related to client connections.
typedef struct otc_connection otc_connection |
Type definition for a structure representing a client connected to an OpenTok session.
otc_connection* otc_connection_copy | ( | const otc_connection * | connection | ) |
Makes a copy of this connection.
connection | The client connection to be copied |
otc_status otc_connection_delete | ( | otc_connection * | connection | ) |
Releases resources associated with the connection.
connection | The client connection to release. |
int64_t otc_connection_get_creation_time | ( | const otc_connection * | connection | ) |
Returns the timestamp for when the client connected to the OpenTok session.
connection | The client connection. |
const char* otc_connection_get_data | ( | const otc_connection * | connection | ) |
Returns the data associated with the connection. You set this data when you create the token used for by the client to connect to the OpenTok session. See the Token Creation Overview developer guide.
connection | The client connection. |
const char* otc_connection_get_id | ( | const otc_connection * | connection | ) |
Returns the unique identifier for this connection.
connection | The client connection. |
const char* otc_connection_get_session_id | ( | const otc_connection * | connection | ) |
Gets the session ID for the session the connection is connected to.
connection | The client connection. |