Sign in

    moonbit-community/rtc/ice does not have a README file

    IceError

    pub(all) suberror IceError {
    InvalidCandidate(String)
    InvalidCredentials
    InvalidState(String)
    RoleConflict
    ChecklistFailed
    Time(
    TimeError
    )
    Stun(
    StunError
    )
    Turn(
    TurnError
    )
    Mdns(
    MdnsError
    )
    } derive(Eq,
    Debug
    )

    CandidateAddress

    pub(all) enum CandidateAddress {
    IpAddress(
    IpAddress
    )
    MdnsName(String)
    } derive(Eq,
    Debug
    )

    CandidateAddress::parse

    fn CandidateAddress::parse(value : String) -> CandidateAddress raise IceError

    CandidateAddress::to_string

    fn CandidateAddress::to_string(self : CandidateAddress) -> String

    CandidatePair

    pub struct CandidatePair {
    local_candidate : IceCandidate
    remote_candidate : IceCandidate
    priority : UInt64
    state : CandidatePairState
    nominated : Bool
    } derive(Eq,
    Debug
    )

    CandidatePair::is_nominated

    fn CandidatePair::is_nominated(self : CandidatePair) -> Bool

    CandidatePair::local_candidate

    fn CandidatePair::local_candidate(self : CandidatePair) -> IceCandidate

    CandidatePair::priority

    fn CandidatePair::priority(self : CandidatePair) -> UInt64

    CandidatePair::remote_candidate

    fn CandidatePair::remote_candidate(self : CandidatePair) -> IceCandidate

    CandidatePair::state

    CandidatePairState

    pub(all) enum CandidatePairState {
    PairWaiting
    PairInProgress
    PairSucceeded
    PairFailed
    } derive(Eq,
    Debug
    )

    CandidateType

    pub(all) enum CandidateType {
    Host
    ServerReflexive
    PeerReflexive
    Relay
    } derive(Eq,
    Debug
    )

    CandidateType::preference

    fn CandidateType::preference(self : CandidateType) -> UInt16

    CandidateType::to_string

    fn CandidateType::to_string(self : CandidateType) -> String

    IceAgent

    IceAgent::add_local_candidate

    fn IceAgent::add_local_candidate(self : IceAgent, candidate : IceCandidate, now? :
    Instant
    ) -> Unit raise IceError

    IceAgent::add_remote_candidate

    fn IceAgent::add_remote_candidate(self : IceAgent, candidate : IceCandidate, now? :
    Instant
    ) -> Unit raise IceError

    IceAgent::candidate_pairs

    fn IceAgent::candidate_pairs(self : IceAgent) -> Array[CandidatePair]

    IceAgent::close

    fn IceAgent::close(self : IceAgent) -> Unit

    IceAgent::handle_datagram

    IceAgent::handle_timeout

    fn IceAgent::handle_timeout(self : IceAgent, now :
    Instant
    ) -> Unit raise IceError

    IceAgent::local_candidates

    fn IceAgent::local_candidates(self : IceAgent) -> Array[IceCandidate]

    IceAgent::local_credentials

    fn IceAgent::local_credentials(self : IceAgent) -> IceCredentials

    IceAgent::new

    fn IceAgent::new(local_credentials~ : IceCredentials, role~ : IceRole, tie_breaker~ : UInt64, check_interval? :
    Duration
    , initial_rto? :
    Duration
    , reliable_timeout? :
    Duration
    , max_retransmissions? : Int, disconnected_timeout? :
    Duration
    , failed_timeout? :
    Duration
    , keepalive_interval? :
    Duration
    ) -> IceAgent raise IceError

    IceAgent::poll_event

    fn IceAgent::poll_event(self : IceAgent) -> IceEvent?

    IceAgent::poll_timeout

    IceAgent::remote_candidates

    fn IceAgent::remote_candidates(self : IceAgent) -> Array[IceCandidate]

    IceAgent::remote_credentials

    fn IceAgent::remote_credentials(self : IceAgent) -> IceCredentials?

    IceAgent::role

    fn IceAgent::role(self : IceAgent) -> IceRole

    IceAgent::selected_pair

    fn IceAgent::selected_pair(self : IceAgent) -> CandidatePair?

    IceAgent::send

    fn IceAgent::send(self : IceAgent, payload : Bytes) -> Unit raise IceError

    IceAgent::set_remote_credentials

    fn IceAgent::set_remote_credentials(self : IceAgent, credentials : IceCredentials) -> Unit raise IceError

    IceAgent::start

    IceAgent::state

    fn IceAgent::state(self : IceAgent) -> IceConnectionState

    IceCandidate

    pub struct IceCandidate {
    foundation : String
    component : UInt16
    protocol :
    TransportProtocol

    priority : UInt
    address : CandidateAddress
    port : UInt16
    candidate_type : CandidateType
    related_address : CandidateAddress?
    related_port : UInt16?
    tcp_type : TcpCandidateType?
    extensions : Array[(String, String)]
    } derive(Eq,
    Debug
    )

    IceCandidate::address

    IceCandidate::base_socket_address

    IceCandidate::candidate_type

    fn IceCandidate::candidate_type(self : IceCandidate) -> CandidateType

    IceCandidate::component

    fn IceCandidate::component(self : IceCandidate) -> UInt16

    IceCandidate::extensions

    fn IceCandidate::extensions(self : IceCandidate) -> Array[(String, String)]

    IceCandidate::foundation

    fn IceCandidate::foundation(self : IceCandidate) -> String

    IceCandidate::host

    fn IceCandidate::host(foundation~ : String, address :
    SocketAddress
    , local_preference? : UInt16) -> IceCandidate raise IceError

    IceCandidate::marshal

    fn IceCandidate::marshal(self : IceCandidate) -> String

    IceCandidate::new

    fn IceCandidate::new(foundation~ : String, component~ : UInt16, protocol~ :
    TransportProtocol
    , priority~ : UInt, address~ : CandidateAddress, port~ : UInt16, candidate_type~ : CandidateType, related_address? : CandidateAddress, related_port? : UInt16, tcp_type? : TcpCandidateType, extensions? : Array[(String, String)]) -> IceCandidate raise IceError

    IceCandidate::parse

    fn IceCandidate::parse(value : String) -> IceCandidate raise IceError

    IceCandidate::port

    fn IceCandidate::port(self : IceCandidate) -> UInt16

    IceCandidate::priority

    fn IceCandidate::priority(self : IceCandidate) -> UInt

    IceCandidate::priority_value

    fn IceCandidate::priority_value(candidate_type~ : CandidateType, local_preference~ : UInt16, component~ : UInt16) -> UInt raise IceError

    IceCandidate::related_address

    fn IceCandidate::related_address(self : IceCandidate) -> CandidateAddress?

    IceCandidate::related_port

    fn IceCandidate::related_port(self : IceCandidate) -> UInt16?

    IceCandidate::resolve_mdns

    IceCandidate::socket_address

    IceCandidate::tcp_host

    fn IceCandidate::tcp_host(foundation~ : String, address :
    SocketAddress
    , tcp_type~ : TcpCandidateType, local_preference? : UInt16) -> IceCandidate raise IceError

    IceCandidate::tcp_type

    fn IceCandidate::tcp_type(self : IceCandidate) -> TcpCandidateType?

    IceCandidate::to_sdp_attribute

    fn IceCandidate::to_sdp_attribute(self : IceCandidate) -> String

    IceCandidate::with_mdns_name

    fn IceCandidate::with_mdns_name(self : IceCandidate, name : String) -> IceCandidate raise IceError

    IceConnectionState

    pub(all) enum IceConnectionState {
    New
    Checking
    Connected
    Completed
    Disconnected
    Failed
    Closed
    } derive(Eq,
    Debug
    )

    IceCredentials

    pub struct IceCredentials {
    username_fragment : String
    password : String
    } derive(Eq,
    Debug
    )

    IceCredentials::new

    fn IceCredentials::new(username_fragment~ : String, password~ : String) -> IceCredentials raise IceError

    IceCredentials::password

    fn IceCredentials::password(self : IceCredentials) -> String

    IceCredentials::username_fragment

    fn IceCredentials::username_fragment(self : IceCredentials) -> String

    IceEvent

    pub(all) enum IceEvent {
    ConnectionStateChanged(IceConnectionState)
    RoleChanged(IceRole)
    SelectedPair(CandidatePair)
    ApplicationDatagram(
    InboundDatagram
    )
    } derive(Eq,
    Debug
    )

    IceGatheringState

    pub(all) enum IceGatheringState {
    New
    Gathering
    Complete
    } derive(Eq,
    Debug
    )

    IceRole

    pub(all) enum IceRole {
    Controlling
    Controlled
    } derive(Eq,
    Debug
    )

    IceTransportPolicy

    pub(all) enum IceTransportPolicy {
    All
    Relay
    } derive(Eq,
    Debug
    )

    SrflxEvent

    pub(all) enum SrflxEvent {
    ServerReflexiveCandidate(IceCandidate)
    SrflxStateChanged(SrflxGatheringState)
    } derive(Eq,
    Debug
    )

    SrflxGatherer

    SrflxGatherer::close

    fn SrflxGatherer::close(self : SrflxGatherer) -> Unit

    SrflxGatherer::handle_datagram

    SrflxGatherer::handle_timeout

    SrflxGatherer::handles_context

    SrflxGatherer::poll_event

    fn SrflxGatherer::poll_event(self : SrflxGatherer) -> SrflxEvent?

    SrflxGatherer::poll_timeout

    SrflxGatherer::start

    SrflxGatherer::state

    SrflxGatheringState

    pub(all) enum SrflxGatheringState {
    SrflxNew
    SrflxGathering
    SrflxComplete
    SrflxFailed
    SrflxClosed
    } derive(Eq,
    Debug
    )

    TcpCandidateType

    pub(all) enum TcpCandidateType {
    Active
    Passive
    SimultaneousOpen
    } derive(Eq,
    Debug
    )

    TcpCandidateType::to_string

    fn TcpCandidateType::to_string(self : TcpCandidateType) -> String