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_socket.h File Reference
#include <config.h>
#include <boost/shared_ptr.hpp>
#include <iostream>
#include "vsnet_address.h"
#include "vsnet_socketset.h"
#include "packetmem.h"

Go to the source code of this file.

Classes

class  SOCKETALT
 
class  SOCKETALT::CompareLt
 

Functions

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

Function Documentation

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

Definition at line 73 of file vsnet_socket.cpp.

74 {
75  if (s._sock) s._sock->dump( ostr );
76  else ostr<<"NULL";
77  return ostr;
78 }
bool operator== ( const SOCKETALT l,
const SOCKETALT r 
)

Definition at line 80 of file vsnet_socket.cpp.

81 {
82  if (!l._sock)
83  return (!r._sock) ? true : false;
84  else if (!r._sock)
85  return false;
86  else
87  return l._sock->eq( *r._sock );
88 }