Variant f_pfsockopen(CStrRef hostname, int port /* = -1 */, VRefParam errnum /* = null */, VRefParam errstr /* = null */, double timeout /* = 0.0 */) { // TODO: persistent socket handling return sockopen_impl(hostname, port, errnum, errstr, timeout, true); }
Variant HHVM_FUNCTION(pfsockopen, const String& hostname, int port /* = -1 */, VRefParam errnum /* = null */, VRefParam errstr /* = null */, double timeout /* = -1.0 */) { HostURL hosturl(static_cast<const std::string>(hostname), port); return sockopen_impl(hosturl, errnum, errstr, timeout, true); }
Variant f_stream_socket_client(const String& remote_socket, VRefParam errnum /* = null */, VRefParam errstr /* = null */, double timeout /* = -1.0 */, int flags /* = 0 */, const Resource& context /* = null_object */) { HostURL hosturl(static_cast<const std::string>(remote_socket)); return sockopen_impl(hosturl, errnum, errstr, timeout, false); }
Variant f_stream_socket_client(CStrRef remote_socket, VRefParam errnum /* = null */, VRefParam errstr /* = null */, double timeout /* = 0.0 */, int flags /* = 0 */, CResRef context /* = null_object */) { Util::HostURL hosturl(static_cast<const std::string>(remote_socket)); return sockopen_impl(hosturl, errnum, errstr, timeout, false); }
Variant f_fsockopen(CStrRef hostname, int port /* = -1 */, VRefParam errnum /* = null */, VRefParam errstr /* = null */, double timeout /* = 0.0 */) { return sockopen_impl(hostname, port, errnum, errstr, timeout, false); }