raSystem  1.0 bata
raSocket Class Reference

#include <raSocket.h>

Inheritance diagram for raSocket:
raClientSocket raServerSocket

Public Member Functions

 raSocket (void)
 
 raSocket (SOCKET Socket)
 
 ~raSocket (void)
 
void fdset (bool write)
 
void fdclr (bool write)
 
int Receive (void)
 
bool Send (LPCSTR Data, int Size)
 
raString GetBuffer ()
 

Static Public Member Functions

static void select (bool write)
 
static void fdzero (bool write)
 

Static Public Attributes

static const int RECVBUFLEN = 512
 

Protected Attributes

SOCKET m_Socket
 
sockaddr_in m_SocketAddress
 
char m_recvbuf [RECVBUFLEN]
 

Static Protected Attributes

static FD_SET fdSetSend
 
static FD_SET fdSetRecv
 

Detailed Description

Definition at line 11 of file raSocket.h.

Constructor & Destructor Documentation

◆ raSocket() [1/2]

raSocket::raSocket ( void  )

Definition at line 9 of file raSocket.cpp.

◆ raSocket() [2/2]

raSocket::raSocket ( SOCKET  Socket)

Definition at line 34 of file raSocket.cpp.

◆ ~raSocket()

raSocket::~raSocket ( void  )

Definition at line 45 of file raSocket.cpp.

Member Function Documentation

◆ fdclr()

void raSocket::fdclr ( bool  write)

Definition at line 67 of file raSocket.cpp.

◆ fdset()

void raSocket::fdset ( bool  write)

Definition at line 57 of file raSocket.cpp.

◆ fdzero()

void raSocket::fdzero ( bool  write)
static

Definition at line 50 of file raSocket.cpp.

◆ GetBuffer()

raString raSocket::GetBuffer ( )
inline

Definition at line 25 of file raSocket.h.

◆ Receive()

int raSocket::Receive ( void  )

Definition at line 85 of file raSocket.cpp.

◆ select()

void raSocket::select ( bool  write)
static

Definition at line 77 of file raSocket.cpp.

◆ Send()

bool raSocket::Send ( LPCSTR  Data,
int  Size 
)

Definition at line 93 of file raSocket.cpp.

Member Data Documentation

◆ fdSetRecv

FD_SET raSocket::fdSetRecv
staticprotected

Definition at line 34 of file raSocket.h.

◆ fdSetSend

FD_SET raSocket::fdSetSend
staticprotected

Definition at line 33 of file raSocket.h.

◆ m_recvbuf

char raSocket::m_recvbuf[RECVBUFLEN]
protected

Definition at line 35 of file raSocket.h.

◆ m_Socket

SOCKET raSocket::m_Socket
protected

Definition at line 30 of file raSocket.h.

◆ m_SocketAddress

sockaddr_in raSocket::m_SocketAddress
protected

Definition at line 31 of file raSocket.h.

◆ RECVBUFLEN

const int raSocket::RECVBUFLEN = 512
static

Definition at line 27 of file raSocket.h.


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