Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vsnet_serversocket.cpp File Reference
#include <config.h>
#include "vsnet_socket.h"
#include "vsnet_serversocket.h"
#include "vsnet_oss.h"
#include "vsnet_debug.h"
#include "vsnet_err.h"
#include "vsnet_headers.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &ostr, const ServerSocket &s)
 
bool operator== (const ServerSocket &l, const ServerSocket &r)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ostr,
const ServerSocket s 
)

Definition at line 14 of file vsnet_serversocket.cpp.

References ServerSocket::_srv_ip, and VsnetSocketBase::get_fd().

15 {
16  ostr<<"( s="<<s.get_fd()<<" l="<<s._srv_ip<<" )";
17  return ostr;
18 }
bool operator== ( const ServerSocket l,
const ServerSocket r 
)

Definition at line 20 of file vsnet_serversocket.cpp.

References VsnetSocketBase::get_fd().

21 {
22  return l.get_fd() == r.get_fd();
23 }