Skip to content

Commit

Permalink
move data_channel out of transport
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc committed Mar 24, 2024
1 parent bbb4887 commit d4d56c9
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion rtc/src/handlers/demuxer.rs → rtc/src/handler/demuxer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::handlers::RTCHandler;
use crate::handler::RTCHandler;
use crate::messages::{DTLSMessage, RTCMessage, RTPMessage, STUNMessage};
use log::{debug, error};
use shared::Transmit;
Expand Down
2 changes: 1 addition & 1 deletion rtc/src/handlers/dtls.rs → rtc/src/handler/dtls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;
use std::time::Instant;

use crate::api::setting_engine::SettingEngine;
use crate::handlers::RTCHandler;
use crate::handler::RTCHandler;
use crate::messages::{DTLSMessage, RTCEvent, RTCMessage};
use crate::transport::dtls_transport::RTCDtlsTransport;
use dtls::endpoint::EndpointEvent;
Expand Down
2 changes: 1 addition & 1 deletion rtc/src/handlers/ice.rs → rtc/src/handler/ice.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::handlers::RTCHandler;
use crate::handler::RTCHandler;
use crate::messages::{RTCEvent, RTCMessage, STUNMessage};
use crate::transport::ice_transport::ice_candidate_pair::RTCIceCandidatePair;
use crate::transport::ice_transport::{IceTransportEvent, RTCIceTransport};
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion rtc/src/handlers/sctp.rs → rtc/src/handler/sctp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::handlers::RTCHandler;
use crate::handler::RTCHandler;
use crate::messages::{
DTLSMessage, DataChannelMessage, DataChannelMessageParams, DataChannelMessageType, RTCEvent,
RTCMessage,
Expand Down
3 changes: 2 additions & 1 deletion rtc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ extern crate lazy_static;
*/
pub mod api;
pub mod constants;
pub mod handlers;
pub mod data_channel;
pub mod handler;
pub mod messages;
pub mod peer_connection;
pub mod rtp_transceiver;
Expand Down
2 changes: 1 addition & 1 deletion rtc/src/messages.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::transport::data_channel::DataChannelEvent;
use crate::data_channel::DataChannelEvent;
use crate::transport::dtls_transport::DtlsTransportEvent;
use crate::transport::ice_transport::IceTransportEvent;
use crate::transport::sctp_transport::SctpTransportEvent;
Expand Down
4 changes: 2 additions & 2 deletions rtc/src/stats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ use std::collections::HashMap;
use std::time::Instant;
use std::time::SystemTime;

use crate::data_channel::data_channel_state::RTCDataChannelState;
use crate::data_channel::RTCDataChannel;
use crate::peer_connection::certificate::RTCCertificate;
use crate::rtp_transceiver::rtp_codec::RTCRtpCodecParameters;
use crate::rtp_transceiver::{PayloadType, SSRC};
use crate::transport::data_channel::data_channel_state::RTCDataChannelState;
use crate::transport::data_channel::RTCDataChannel;
use crate::transport::dtls_transport::dtls_fingerprint::RTCDtlsFingerprint;
use crate::transport::sctp_transport::RTCSctpTransport;

Expand Down
1 change: 0 additions & 1 deletion rtc/src/transport/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pub mod data_channel;
pub mod dtls_transport;
pub mod ice_transport;
pub mod sctp_transport;
Expand Down
4 changes: 2 additions & 2 deletions rtc/src/transport/sctp_transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use std::sync::Arc;

use crate::api::setting_engine::SettingEngine;
//use crate::transports::data_channel::data_channel_parameters::DataChannelParameters;
use crate::transport::data_channel::data_channel_state::RTCDataChannelState;
use crate::transport::data_channel::RTCDataChannel;
use crate::data_channel::data_channel_state::RTCDataChannelState;
use crate::data_channel::RTCDataChannel;
use crate::transport::dtls_transport::dtls_role::DTLSRole;
//use crate::transports::dtls_transport::*;
use crate::messages::RTCMessage;
Expand Down

0 comments on commit d4d56c9

Please sign in to comment.