Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

Net::Socket Class Reference

base socket class, don't use direct More...

#include <net_socket.h>

Inheritance diagram for Net::Socket:

Inheritance graph
List of all members.

Public Member Functions

 Socket ()
 dummy constructor

void get (char *buffer, int size)
 read data

void set (char *buffer, int size)
 write data

int getOnce (char *buffer, int size)
 try get data once

void destroy ()
 close socket

string peerName ()
 get name of peer

void operator= (Socket s)
 copy operator

Protected Attributes

int sockId
 socket handle

Detailed Description

base socket class, don't use direct

Member Function Documentation

void Net::Socket::get char *  buffer,
int  size

read data

blocking read

buffer buffer for read data
size size of expected data (this function won't end until reads size bytes)

int Net::Socket::getOnce char *  buffer,
int  size

try get data once

do not use - only for testing usage

void Net::Socket::set char *  buffer,
int  size

write data

nonblocking write

buffer buffer of data
size size of buffer

The documentation for this class was generated from the following files:
Generated on Fri May 28 02:26:37 2004 for Piskvorky by doxygen 1.3.7