MCPcopy Create free account
hub / github.com/acl-dev/acl / connect_server

Method connect_server

lib_acl_cpp/samples/check_trigger/http_thread.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81acl::socket_stream* http_thread::connect_server()
82{
83 // ����Զ�� HTTP ������
84 acl::socket_stream* conn = new acl::socket_stream();
85 if (conn->open(addr_, var_cfg_conn_timeout,
86 var_cfg_rw_timeout) == false)
87 {
88 logger_error("connect server %s error %s",
89 addr_, acl::last_serror());
90 return NULL;
91 }
92
93 return conn;
94}
95
96bool http_thread::http_request(acl::socket_stream* conn, const char* host)
97{

Callers

nothing calls this directly

Calls 2

last_serrorFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected