Ejemplo n.º 1
0
Variant f_stream_socket_server(const String& local_socket,
                               VRefParam errnum /* = null */,
                               VRefParam errstr /* = null */,
                               int flags /* = 0 */,
                               const Resource& context /* = null_object */) {
  HostURL hosturl(static_cast<const std::string>(local_socket));
  return socket_server_impl(hosturl, flags, errnum, errstr);
}
Ejemplo n.º 2
0
Variant f_stream_socket_server(CStrRef local_socket,
                               VRefParam errnum /* = null */,
                               VRefParam errstr /* = null */,
                               int flags /* = 0 */,
                               CResRef context /* = null_object */) {
  Util::HostURL hosturl(static_cast<const std::string>(local_socket));
  return socket_server_impl(hosturl, errnum, errstr);
}
Ejemplo n.º 3
0
Variant HHVM_FUNCTION(socket_server,
                      const String& hostname,
                      int port /* = -1 */,
                      VRefParam errnum /* = null */,
                      VRefParam errstr /* = null */) {
  HostURL hosturl(static_cast<const std::string>(hostname), port);
  return socket_server_impl(hosturl,
                            k_STREAM_SERVER_BIND|k_STREAM_SERVER_LISTEN,
                            errnum, errstr);
}