GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com

#ifndef SRC_INSPECTOR_SOCKET_H_ #define SRC_INSPECTOR_SOCKET_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "util.h" #include "uv.h" #include #include namespace node { namespace inspector { class ProtocolHandler; // HTTP Wrapper around a uv_tcp_t class InspectorSocket { public: class Delegate { public: virtual void OnHttpGet(const std::string& host, const std::string& path) = 0; virtual void OnSocketUpgrade(const std::string& host, const std::string& path, const std::string& accept_key) = 0; virtual void OnWsFrame(const std::vector& frame) = 0; virtual ~Delegate() = default; }; using DelegatePointer = std::unique_ptr; using Pointer = std::unique_ptr; static Pointer Accept(uv_stream_t* server, DelegatePointer delegate); ~InspectorSocket(); void AcceptUpgrade(const std::string& accept_key); void CancelHandshake(); void Write(const char* data, size_t len); void SwitchProtocol(ProtocolHandler* handler); std::string GetHost(); InspectorSocket(const InspectorSocket&) = delete; InspectorSocket& operator=(const InspectorSocket&) = delete; private: static void Shutdown(ProtocolHandler*); InspectorSocket() = default; DeleteFnPtr protocol_handler_; }; } // namespace inspector } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #endif // SRC_INSPECTOR_SOCKET_H_
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.