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
POSIXSocket Class Reference
Inheritance diagram for POSIXSocket:
Collaboration diagram for POSIXSocket:

Public Member Functions

 POSIXSocket ()
 
 POSIXSocket (int socket)
 
virtual ~POSIXSocket ()
 
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 356 of file platform-posix.cc.

Constructor & Destructor Documentation

POSIXSocket ( )
inlineexplicit

Definition at line 358 of file platform-posix.cc.

References ASSERT, POSIXSocket::IsValid(), and v8::internal::USE().

Referenced by POSIXSocket::Accept().

POSIXSocket ( int  socket)
inlineexplicit

Definition at line 370 of file platform-posix.cc.

virtual ~POSIXSocket ( )
inlinevirtual

Definition at line 371 of file platform-posix.cc.

References POSIXSocket::Shutdown().

Member Function Documentation

Socket * Accept ( ) const
virtual

Implements Socket.

Definition at line 424 of file platform-posix.cc.

References POSIXSocket::IsValid(), v8::internal::NULL, and POSIXSocket::POSIXSocket().

bool Bind ( const int  port)
virtual

Implements Socket.

Definition at line 397 of file platform-posix.cc.

References POSIXSocket::IsValid().

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

Implements Socket.

Definition at line 442 of file platform-posix.cc.

References POSIXSocket::IsValid(), and v8::internal::NULL.

bool IsValid ( ) const
inlinevirtual
bool Listen ( int  backlog) const
virtual

Implements Socket.

Definition at line 414 of file platform-posix.cc.

References POSIXSocket::IsValid().

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

Implements Socket.

Definition at line 497 of file platform-posix.cc.

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

Implements Socket.

Definition at line 480 of file platform-posix.cc.

bool SetReuseAddress ( bool  reuse_address)
virtual

Implements Socket.

Definition at line 507 of file platform-posix.cc.

bool Shutdown ( )
virtual

Implements Socket.

Definition at line 468 of file platform-posix.cc.

References POSIXSocket::IsValid().

Referenced by POSIXSocket::~POSIXSocket().


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