#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 | |
|
||||||||||||
|
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 }
|
|
||||||||||||
|
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 }
|
1.4.0