_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

List of all members
CUDPSocket Class Reference

#include <netsockets.h>

Public Member Functions

netsockets.cpp - TCP and UDP sockets.
 CUDPSocket ()
 
 ~CUDPSocket ()
 
bool Open (const CHost &host)
 
void Close ()
 
void Send (const CHost &host, const void *buf, unsigned int len)
 
int Recv (void *buf, int len, CHost *hostFrom)
 
void SetNonBlocking ()
 
int HasDataToRead (int timeout)
 
bool IsValid () const
 
int GetSocketAddresses (unsigned long *ips, int maxAddr)
 

Constructor & Destructor Documentation

◆ CUDPSocket()

CUDPSocket::CUDPSocket ( )

◆ ~CUDPSocket()

CUDPSocket::~CUDPSocket ( )

Member Function Documentation

◆ Close()

void CUDPSocket::Close ( )

◆ GetSocketAddresses()

int CUDPSocket::GetSocketAddresses ( unsigned long *  ips,
int  maxAddr 
)

◆ HasDataToRead()

int CUDPSocket::HasDataToRead ( int  timeout)

◆ IsValid()

bool CUDPSocket::IsValid ( ) const

◆ Open()

bool CUDPSocket::Open ( const CHost host)

◆ Recv()

int CUDPSocket::Recv ( void buf,
int  len,
CHost hostFrom 
)

◆ Send()

void CUDPSocket::Send ( const CHost host,
const void buf,
unsigned int  len 
)

◆ SetNonBlocking()

void CUDPSocket::SetNonBlocking ( )

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.