An implementation of Interactive Connectivity Establishment (RFC 5245)
Project description
What is aioice?
aioice is a library for Interactive Connectivity Establishment (RFC 5245) in Python. It is built on top of `asyncio`, Python’s standard asynchronous I/O framework.
#!/usr/bin/env python
import asyncio
import aioice
async def connect_using_ice(uri):
connection = aioice.Connect(ice_controlling=True)
# gather local candidates
local_candidates = await connection.get_local_candidates()
# send your information to the remote party using your signaling method
send_local_info(
local_candidates,
connection.local_username,
connection.local_password)
# receive remote information using your signaling method
remote_candidates, remote_username, remote_password = get_remote_info()
# perform ICE handshake
connection.remote_username = remote_username
connection.remote_password = remote_password
connection.set_remote_candidates(remote_candidates)
await connection.connect()
# send and receive data
await connection.send(b'1234')
data = await connection.recv()
# close connection
await connection.close()
asyncio.get_event_loop().run_until_complete(connect_using_ice())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioice-0.1.5.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file aioice-0.1.5.tar.gz
.
File metadata
- Download URL: aioice-0.1.5.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e3de68b7c369e9ea2c23142139cb456b6e893458ab4bb92e4d66d2509f3cf0 |
|
MD5 | c478471288578415d380ac17600e59e7 |
|
BLAKE2b-256 | 7059876e04dec01816c064fb08cd6ea62eca819c42dbf131728e6bd237db2181 |
Provenance
File details
Details for the file aioice-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: aioice-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5209d6e014384c06d0631aa9c74103d3ba6d955fe21eb5163b7302585b09c0d6 |
|
MD5 | 5e3c953e4c6aa95a60897ecf9134bc00 |
|
BLAKE2b-256 | 3df897376582d7aba1e82e670fd07e0e3533428b0b1067c67fb8a0ee15608cc5 |