v8  3.14.5(node0.10.28)
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 1743 of file platform-win32.cc.

Constructor & Destructor Documentation

Win32Socket ( )
inlineexplicit

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

Win32Socket ( SOCKET  socket)
inlineexplicit

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

virtual ~Win32Socket ( )
inlinevirtual

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

Member Function Documentation

Socket * Accept ( ) const
virtual

Implements Socket.

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

References v8::internal::NULL.

bool Bind ( const int  port)
virtual

Implements Socket.

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

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

Implements Socket.

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

References v8::internal::NULL.

bool IsValid ( ) const
inlinevirtual

Implements Socket.

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

bool Listen ( int  backlog) const
virtual

Implements Socket.

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

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

Implements Socket.

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

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

Implements Socket.

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

bool SetReuseAddress ( bool  reuse_address)
virtual

Implements Socket.

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

References v8::internal::BOOL().

bool Shutdown ( )
virtual

Implements Socket.

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


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