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():
connection = aioice.Connection(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_candidates = remote_candidates
connection.remote_username = remote_username
connection.remote_password = remote_password
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.3.0.tar.gz
(12.5 kB
view details)
Built Distribution
aioice-0.3.0-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file aioice-0.3.0.tar.gz
.
File metadata
- Download URL: aioice-0.3.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ff60c04b5065929ef4162641fef9dfb9bb59feb42ccf942c8bc84c4335ec45 |
|
MD5 | a628ee8f272636a79b660abe66080b16 |
|
BLAKE2b-256 | 13abd1cb184f4a40c251c89c25971f0cf3a6a6928f228465cf0ef3a5fcc434bd |
File details
Details for the file aioice-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: aioice-0.3.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d143f65af2468b3c30114a1724ada06aaed84ff558cdd9b665f3bd7b67643e48 |
|
MD5 | cb8802f5c37f1b189dee896814b82a5d |
|
BLAKE2b-256 | 3b53f9daaaf69100efa70dfd2274405395b2cac9f9de2f9415ce0ec52d003e6c |