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

socket.cc File Reference

#include <iostream>
#include <fstream>
#include <sys/types.h>
#include "socket.hh"

Go to the source code of this file.

Namespaces

namespace  Network

Functions

Socket & operator<< (Socket &s, const std::string &str)
 write a string on current socket
Socket & operator>> (Socket &s, std::string &str)
 read a string on current socket


Function Documentation

Socket & Network::operator<< Socket &  s,
const std::string &  str
 

write a string on current socket

Definition at line 363 of file socket.cc.

References Network::Socket::write().

00364   {
00365     s.write(str);
00366     return s;
00367   }

Socket & Network::operator>> Socket &  s,
std::string &  str
 

read a string on current socket

Definition at line 369 of file socket.cc.

References Network::Socket::read().

00370   {
00371     str = s.read();
00372     return s;
00373   }


Generated on Fri Apr 8 06:13:01 2005 for libsocket by  doxygen 1.4.0