コード例 #1
0
ファイル: ext_socket.cpp プロジェクト: hakanertug/hiphop-php
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);
}
コード例 #2
0
ファイル: ext_sockets.cpp プロジェクト: 191919/hhvm
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);
}
コード例 #3
0
ファイル: ext_stream.cpp プロジェクト: 2bj/hhvm
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);
}
コード例 #4
0
ファイル: ext_stream.cpp プロジェクト: Tlamelo/hiphop-php
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);
}
コード例 #5
0
ファイル: ext_socket.cpp プロジェクト: hakanertug/hiphop-php
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);
}