v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Win32Socket Class Reference
Inheritance diagram for Win32Socket:
Collaboration diagram for Win32Socket:

Public Member Functions

 Win32Socket ()
 
 Win32Socket (SOCKET socket)
 
virtual ~Win32Socket ()
 
bool Bind (const int port)
 
bool Listen (int backlog) const
 
SocketAccept () const
 
bool Connect (const char *host, const char *port)
 
bool Shutdown ()
 
int Send (const char *data, int len) const
 
int Receive (char *data, int len) const
 
bool SetReuseAddress (bool reuse_address)
 
bool IsValid () const
 
- Public Member Functions inherited from Socket
virtual ~Socket ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Socket
static bool SetUp ()
 
static int LastError ()
 
static uint16_t HToN (uint16_t value)
 
static uint16_t NToH (uint16_t value)
 
static uint32_t HToN (uint32_t value)
 
static uint32_t NToH (uint32_t value)
 

Detailed Description

Definition at line 1738 of file platform-win32.cc.

Constructor & Destructor Documentation

Win32Socket ( )
inlineexplicit

Definition at line 1740 of file platform-win32.cc.

Win32Socket ( SOCKET  socket)
inlineexplicit

Definition at line 1744 of file platform-win32.cc.

virtual ~Win32Socket ( )
inlinevirtual

Definition at line 1745 of file platform-win32.cc.

Member Function Documentation

Socket * Accept ( ) const
virtual

Implements Socket.

Definition at line 1798 of file platform-win32.cc.

References v8::internal::NULL.

bool Bind ( const int  port)
virtual

Implements Socket.

Definition at line 1771 of file platform-win32.cc.

bool Connect ( const char *  host,
const char *  port 
)
virtual

Implements Socket.

Definition at line 1812 of file platform-win32.cc.

References v8::internal::NULL.

bool IsValid ( ) const
inlinevirtual

Implements Socket.

Definition at line 1764 of file platform-win32.cc.

bool Listen ( int  backlog) const
virtual

Implements Socket.

Definition at line 1788 of file platform-win32.cc.

int Receive ( char *  data,
int  len 
) const
virtual

Implements Socket.

Definition at line 1867 of file platform-win32.cc.

int Send ( const char *  data,
int  len 
) const
virtual

Implements Socket.

Definition at line 1850 of file platform-win32.cc.

bool SetReuseAddress ( bool  reuse_address)
virtual

Implements Socket.

Definition at line 1874 of file platform-win32.cc.

References v8::internal::BOOL().

bool Shutdown ( )
virtual

Implements Socket.

Definition at line 1838 of file platform-win32.cc.


The documentation for this class was generated from the following file: