You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2018/04/12 07:13:18 UTC

[trafficserver] branch quic-latest updated: Make QUICClient::start an event handler

This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 3dddd89  Make QUICClient::start an event handler
3dddd89 is described below

commit 3dddd89f1be2c032774c67e9e1efb3cfd1cc5918
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Thu Apr 12 16:10:39 2018 +0900

    Make QUICClient::start an event handler
---
 cmd/traffic_quic/quic_client.cc | 7 ++++---
 cmd/traffic_quic/quic_client.h  | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/cmd/traffic_quic/quic_client.cc b/cmd/traffic_quic/quic_client.cc
index d6a7176..3a2e661 100644
--- a/cmd/traffic_quic/quic_client.cc
+++ b/cmd/traffic_quic/quic_client.cc
@@ -28,8 +28,8 @@ QUICClient::~QUICClient()
   freeaddrinfo(this->_remote_addr_info);
 }
 
-void
-QUICClient::start()
+int
+QUICClient::start(int, void *)
 {
   SET_HANDLER(&QUICClient::state_http_server_open);
 
@@ -44,7 +44,7 @@ QUICClient::start()
   int res = getaddrinfo(this->_remote_addr, this->_remote_port, &hints, &this->_remote_addr_info);
   if (res < 0) {
     Debug("quic_client", "Error: %s (%d)", strerror(errno), errno);
-    return;
+    return EVENT_DONE;
   }
 
   for (struct addrinfo *info = this->_remote_addr_info; info != nullptr; info = info->ai_next) {
@@ -62,6 +62,7 @@ QUICClient::start()
       break;
     }
   }
+  return EVENT_CONT;
 }
 
 // Similar to HttpSM::state_http_server_open(int event, void *data)
diff --git a/cmd/traffic_quic/quic_client.h b/cmd/traffic_quic/quic_client.h
index 575d7a1..ea71739 100644
--- a/cmd/traffic_quic/quic_client.h
+++ b/cmd/traffic_quic/quic_client.h
@@ -37,7 +37,7 @@ public:
   };
   ~QUICClient();
 
-  void start();
+  int start(int, void *);
   int state_http_server_open(int event, void *data);
 
 private:

-- 
To stop receiving notification emails like this one, please contact
maskit@apache.org.