<commit_before>/*
 * WebRTCConnection.cpp
 */

#include <cstdio>

#include "WebRtcConnection.h"
#include "DtlsTransport.h"
#include "SdpInfo.h"
#include "rtp/RtpHeaders.h"
#include "rtp/RtpVP8Parser.h"
#include "rtp/RtcpAggregator.h"
#include "rtp/RtcpForwarder.h"

namespace erizo {
  DEFINE_LOGGER(WebRtcConnection, "WebRtcConnection");
  
  WebRtcConnection::WebRtcConnection(bool audioEnabled, bool videoEnabled, 
      const IceConfig& iceConfig, WebRtcConnectionEventListener* listener)
      : audioEnabled_ (audioEnabled), videoEnabled_(videoEnabled),connEventListener_(listener), iceConfig_(iceConfig), fec_receiver_(this){
    ELOG_INFO("WebRtcConnection constructor stunserver %s stunPort %d minPort %d maxPort %d\n", iceConfig.stunServer.c_str(), iceConfig.stunPort, iceConfig.minPort, iceConfig.maxPort);
    bundle_ = false;
    aggregateRtcp_ = false;
    setVideoSinkSSRC(55543);
    setAudioSinkSSRC(44444);
    videoSink_ = NULL;
    audioSink_ = NULL;
    fbSink_ = NULL;
    sourcefbSink_ = this;
    sinkfbSource_ = this;
    globalState_ = CONN_INITIAL;

    trickleEnabled_ = iceConfig_.shouldTrickle;

    shouldSendFeedback_ = true;
    slideShowMode_ = false;

    gettimeofday(&mark_, NULL);

    rateControl_ = 0;
    seqNo_ = 1000;
    sendSeqNo_ = 0;
    grace_= 0;
    seqNoOffset_ = 0;<commit_msg>fixed previous commit<commit_after>/*
 * WebRTCConnection.cpp
 */

#include <cstdio>

#include "WebRtcConnection.h"
#include "DtlsTransport.h"
#include "SdpInfo.h"
#include "rtp/RtpHeaders.h"
#include "rtp/RtpVP8Parser.h"
#include "rtp/RtcpAggregator.h"
#include "rtp/RtcpForwarder.h"

namespace erizo {
  DEFINE_LOGGER(WebRtcConnection, "WebRtcConnection");
  
  WebRtcConnection::WebRtcConnection(bool audioEnabled, bool videoEnabled, 
      const IceConfig& iceConfig, WebRtcConnectionEventListener* listener)
      : audioEnabled_ (audioEnabled), videoEnabled_(videoEnabled),connEventListener_(listener), iceConfig_(iceConfig), fec_receiver_(this){
    ELOG_INFO("WebRtcConnection constructor stunserver %s stunPort %d minPort %d maxPort %d\n", iceConfig.stunServer.c_str(), iceConfig.stunPort, iceConfig.minPort, iceConfig.maxPort);
    bundle_ = false;
    setVideoSinkSSRC(55543);
    setAudioSinkSSRC(44444);
    videoSink_ = NULL;
    audioSink_ = NULL;
    fbSink_ = NULL;
    sourcefbSink_ = this;
    sinkfbSource_ = this;
    globalState_ = CONN_INITIAL;

    trickleEnabled_ = iceConfig_.shouldTrickle;

    shouldSendFeedback_ = true;
    slideShowMode_ = false;

    gettimeofday(&mark_, NULL);

    rateControl_ = 0;
    seqNo_ = 1000;
    sendSeqNo_ = 0;
    grace_= 0;
    seqNoOffset_ = 0;
{'fraction_non_alphanumeric': 0.10614101592115238, 'fraction_numerical': 0.014404852160727824, 'mean_word_length': 4.6875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3814240', 'n_tokens_mistral': 946, 'n_tokens_neox': 921, 'n_words': 171}