106                        std::string_view address = 
"0.0.0.0",
 
  107                        uint16_t port = 20000,
 
  108                        std::string_view signalling_address = 
"localhost",
 
  109                        uint16_t signalling_port = 80,
 
  110                        std::string_view signalling_identity = 
"server",
 
  111                        std::optional<RtcConfig> rtc_config = std::nullopt);
 
  154  using DataChannelConnectionMap =
 
  155      absl::flat_hash_map<std::string, WebRtcDataChannelConnection>;
 
  156  void RunLoop() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_);
 
  158  absl::Status CancelInternal() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_);
 
  159  absl::Status JoinInternal() ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_);
 
  161  std::shared_ptr<SignallingClient> InitSignallingClient(
 
  162      std::string_view signalling_address, uint16_t signalling_port,
 
  163      DataChannelConnectionMap* absl_nonnull connections);
 
  167  const std::string address_;
 
  168  const uint16_t port_;
 
  169  const std::string signalling_address_;
 
  170  const uint16_t signalling_port_;
 
  171  const std::string signalling_identity_;
 
  172  const std::optional<RtcConfig> rtc_config_;
 
  175      ready_data_connections_;
 
  177  std::unique_ptr<thread::Fiber> main_loop_;
 
 
WebRtcServer(act::Service *absl_nonnull service, std::string_view address="0.0.0.0", uint16_t port=20000, std::string_view signalling_address="localhost", uint16_t signalling_port=80, std::string_view signalling_identity="server", std::optional< RtcConfig > rtc_config=std::nullopt)
Definition server.cc:47