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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members
CTCPSocket Class Reference

#include <netsockets.h>

Public Member Functions

netsockets.cpp - TCP and UDP sockets.
 CTCPSocket ()
 
 ~CTCPSocket ()
 
bool Open (const CHost &host)
 
void Close ()
 
bool Connect (const CHost &host)
 
int Send (const void *buf, unsigned int len)
 
int Recv (void *buf, int len)
 
void SetNonBlocking ()
 
int HasDataToRead (int timeout)
 
bool IsValid () const
 

Constructor & Destructor Documentation

CTCPSocket::CTCPSocket ( )
CTCPSocket::~CTCPSocket ( )

Member Function Documentation

void CTCPSocket::Close ( )
bool CTCPSocket::Connect ( const CHost host)
int CTCPSocket::HasDataToRead ( int  timeout)
bool CTCPSocket::IsValid ( ) const
bool CTCPSocket::Open ( const CHost host)
int CTCPSocket::Recv ( void *  buf,
int  len 
)
int CTCPSocket::Send ( const void *  buf,
unsigned int  len 
)
void CTCPSocket::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.