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

Method open

lib_acl_cpp/src/beanstalk/beanstalk.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211bool beanstalk::open(void)
212{
213 if (conn_.opened()) {
214 return true;
215 }
216
217 if (!conn_.open(addr_, timeout_, 0)) {
218 logger_error("connect beanstalkd %s error: %s",
219 addr_, last_serror());
220 errbuf_= "connect";
221 return false;
222 }
223 return true;
224}
225
226void beanstalk::close(void)
227{

Callers 1

beanstalk_openMethod · 0.45

Calls 2

last_serrorFunction · 0.50
openedMethod · 0.45

Tested by

no test coverage detected