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.cpp File Reference
#include <config.h>
#include "vsnet_headers.h"
#include <sys/ioctl.h>
#include "vsnet_socket.h"
#include "vsnet_sockettcp.h"
#include "vsnet_sockethttp.h"
#include "vsnet_socketudp.h"
#include "vsnet_socketset.h"

Go to the source code of this file.

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 }