Cosmos Driver
The Cosmos Driver functions are all functions related to updating and retrieving database records. This includes not only session data, but also SDP and ICE server data.
Functions
| Function | Description |
|---|---|
| add_candidate | Adds a SDP candidate to the cosmos DB. Candidate string describes the network connectivity information. |
| expire_sdp | Finds any SDP from source, updates the record to expire it. |
| finish_candidates | Adds a record to indicate the end of the ICE candidates. |
| get_answer | Returns a stored Session Description Protocol answer from cosmos |
| get_candidate | Gets an ICE candidate from cosmos DB |
| get_cosmos | Creates a Cosmos database connection |
| get_ice_servers | Gets the Ice Servers |
| get_offer | Returns a stored Session Description Protocol offer from cosmos |
| get_sessions | Creates a Cosmos Sessions DB connection |
| send_answer | Sends an "answer" to the Cosmos database using send_sdp |
| send_offer | Sends an "offer" to the Cosmos database using send_sdp |