Fix typo
authorInkyun Kil <inkyun.kil@samsung.com>
Mon, 8 Mar 2021 00:48:44 +0000 (09:48 +0900)
committer길인균/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <inkyun.kil@samsung.com>
Mon, 8 Mar 2021 00:55:33 +0000 (09:55 +0900)
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
cion/channel/client_channel.cc
cion/channel/client_channel.hh
cion/channel/server_channel.cc
cion/channel/server_channel.hh
cion/tizen-api/cion_client.cc
cion/tizen-api/cion_server.cc

index 615472e748fd8fabcd5e2666378f27c0d0b4f4df..074bcd709e1f15cd428b97c8e0de18e3c9717723 100644 (file)
@@ -130,13 +130,13 @@ void ClientChannel::OnConnectionEvent(std::shared_ptr<IConnectionInfo> info,
   switch (type) {
     case IConnectionInfo::ConnectionType::Connected: {
       impl_->peer_ = std::shared_ptr<PeerInfo>(peer);
-      OnConnentionStatusChaneged(peer,
+      OnConnectionStatusChaneged(peer,
           IConnectionInfo::ConnectionStatus::Online);
       break;
     }
     case IConnectionInfo::ConnectionType::Disconnected: {
       impl_->peer_ = nullptr;
-      OnConnentionStatusChaneged(peer,
+      OnConnectionStatusChaneged(peer,
           IConnectionInfo::ConnectionStatus::Offline);
       break;
     }
index 859290be7363747192cdbc4ed8cc312aaa1b5e5d..2e021d3ff328e461cd4f0bce81059d7968af99fb 100644 (file)
@@ -45,7 +45,7 @@ public:
   void SetSecurity(SecurityInfo sec);
 
  protected:
-  virtual void OnConnentionStatusChaneged(std::shared_ptr<PeerInfo> peer,
+  virtual void OnConnectionStatusChaneged(std::shared_ptr<PeerInfo> peer,
       IConnectionInfo::ConnectionStatus status) = 0;
   virtual void OnPayloadReceived(std::shared_ptr<IPayload> data) = 0;
   virtual void OnErrorReported(int code, std::shared_ptr<PeerInfo> peer) = 0;
index 5333d1574e023d9a8b986b49f4b4de47b28855ce..20cee30f7c148f33c0d70e400ae4346fcad01521 100644 (file)
@@ -129,7 +129,7 @@ void ServerChannel::OnConnectionEvent(std::shared_ptr<IConnectionInfo> info,
   IConnectionInfo::ConnectionType type = info->GetConnectionType();
   switch (type) {
     case IConnectionInfo::ConnectionType::ConnectionRequested: {
-      bool result = OnConnentionRequest(peer);
+      bool result = OnConnectionRequest(peer);
       if (result)
         impl_->sender_->Accept(peer);
       else
@@ -138,7 +138,7 @@ void ServerChannel::OnConnectionEvent(std::shared_ptr<IConnectionInfo> info,
     }
     case IConnectionInfo::ConnectionType::Connected: {
       impl_->peerlist_.push_back(peer);
-      OnConnentionStatusChaneged(peer,
+      OnConnectionStatusChaneged(peer,
           IConnectionInfo::ConnectionStatus::Online);
       break;
     }
@@ -149,7 +149,7 @@ void ServerChannel::OnConnectionEvent(std::shared_ptr<IConnectionInfo> info,
             break;
         }
       }
-      OnConnentionStatusChaneged(peer,
+      OnConnectionStatusChaneged(peer,
           IConnectionInfo::ConnectionStatus::Offline);
       break;
     }
index 241996de7f517c2e2f66f15a28daf59d620a5435..52698e964bf89da08eb9c396438c09cd0d98642d 100644 (file)
@@ -47,13 +47,13 @@ class ServerChannel: public IEventObserver {
   void SetSecurity(SecurityInfo sec);
 
  protected:
-  virtual void OnConnentionStatusChaneged(std::shared_ptr<PeerInfo> peer,
+  virtual void OnConnectionStatusChaneged(std::shared_ptr<PeerInfo> peer,
       IConnectionInfo::ConnectionStatus status) = 0;
   virtual std::vector<char> OnDataReceived(const std::vector<char>& data,
       std::shared_ptr<PeerInfo> peer) = 0;
   virtual void OnPayloadReceived(std::shared_ptr<IPayload> data,
       std::shared_ptr<PeerInfo> peer) = 0;
-  virtual bool OnConnentionRequest(std::shared_ptr<PeerInfo> peer) = 0;
+  virtual bool OnConnectionRequest(std::shared_ptr<PeerInfo> peer) = 0;
   virtual void OnErrorReported(int code, std::shared_ptr<PeerInfo> peer) = 0;
 
   void OnDataEvent(std::shared_ptr<IDataInfo> info,
index a0de8ef19d6a1a63a20530aeee4adfc98e5fd656..11b9bde7400eb56017e46e668121e8e9cd42ae15 100644 (file)
@@ -36,7 +36,7 @@ class CionClient : public cion::channel::ClientChannel {
       service_name), discovered_cbdata_(nullptr, nullptr) {
   }
 
-  void OnConnentionStatusChaneged(std::shared_ptr<cion::PeerInfo> peer,
+  void OnConnectionStatusChaneged(std::shared_ptr<cion::PeerInfo> peer,
       cion::channel::IConnectionInfo::ConnectionStatus status) override {
     auto peerinfo = static_cast<cion_peer_info_h>(peer.get());
     cion_connection_status_e st = CION_CONNECTION_STATUS_OFFLINE;
index ad46971d70daea241f3c2780ebebd1edfa028500..36df0a5fa54d733a77dfd932278590a760b2ebbc 100644 (file)
@@ -38,7 +38,7 @@ class CionServer : public cion::channel::ServerChannel {
         data_received_cbdata_(nullptr, nullptr) {
   }
 
-  void OnConnentionStatusChaneged(std::shared_ptr<cion::PeerInfo> peer,
+  void OnConnectionStatusChaneged(std::shared_ptr<cion::PeerInfo> peer,
       cion::channel::IConnectionInfo::ConnectionStatus status) {
   }
 
@@ -70,7 +70,7 @@ class CionServer : public cion::channel::ServerChannel {
     delete ptr;
   }
 
-  bool OnConnentionRequest(std::shared_ptr<cion::PeerInfo> peer) {
+  bool OnConnectionRequest(std::shared_ptr<cion::PeerInfo> peer) {
     auto peer_info = static_cast<cion_peer_info_h>(peer.get());
     return request_cbdata_.cb("service_name", peer_info,
         request_cbdata_.user_data);