doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
idPort Class Reference

#include <sys_public.h>

Public Member Functions

 idPort ()
 
virtual ~idPort ()
 
bool InitForPort (int portNumber)
 
int GetPort (void) const
 
netadr_t GetAdr (void) const
 
void Close ()
 
bool GetPacket (netadr_t &from, void *data, int &size, int maxSize)
 
bool GetPacketBlocking (netadr_t &from, void *data, int &size, int maxSize, int timeout)
 
void SendPacket (const netadr_t to, const void *data, int size)
 

Public Attributes

int packetsRead
 
int bytesRead
 
int packetsWritten
 
int bytesWritten
 

Private Attributes

netadr_t bound_to
 
int netSocket
 

Detailed Description

Definition at line 412 of file sys_public.h.

Constructor & Destructor Documentation

idPort::idPort ( )

Definition at line 455 of file posix_net.cpp.

idPort::~idPort ( )
virtual

Definition at line 465 of file posix_net.cpp.

Member Function Documentation

void idPort::Close ( void  )

Definition at line 474 of file posix_net.cpp.

netadr_t idPort::GetAdr ( void  ) const
inline

Definition at line 420 of file sys_public.h.

bool idPort::GetPacket ( netadr_t from,
void data,
int size,
int  maxSize 
)

Definition at line 487 of file posix_net.cpp.

bool idPort::GetPacketBlocking ( netadr_t from,
void data,
int size,
int  maxSize,
int  timeout 
)

Definition at line 520 of file posix_net.cpp.

int idPort::GetPort ( void  ) const
inline

Definition at line 419 of file sys_public.h.

bool idPort::InitForPort ( int  portNumber)

Definition at line 598 of file posix_net.cpp.

void idPort::SendPacket ( const netadr_t  to,
const void data,
int  size 
)

Definition at line 572 of file posix_net.cpp.

Member Data Documentation

netadr_t idPort::bound_to
private

Definition at line 434 of file sys_public.h.

int idPort::bytesRead

Definition at line 428 of file sys_public.h.

int idPort::bytesWritten

Definition at line 431 of file sys_public.h.

int idPort::netSocket
private

Definition at line 435 of file sys_public.h.

int idPort::packetsRead

Definition at line 427 of file sys_public.h.

int idPort::packetsWritten

Definition at line 430 of file sys_public.h.


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