Acoustic Touch Recognition
Classes | Typedefs | Functions | Variables
UdpSocket.cpp File Reference
#include <winsock2.h>
#include <windows.h>
#include <mmsystem.h>
#include <signal.h>
#include <algorithm>
#include <cassert>
#include <cstring>
#include <stdexcept>
#include <vector>
#include "ip/UdpSocket.h"
#include "ip/NetworkingUtils.h"
#include "ip/PacketListener.h"
#include "ip/TimerListener.h"
Include dependency graph for UdpSocket.cpp:

Classes

class  UdpSocket::Implementation
 
struct  AttachedTimerListener
 
class  SocketReceiveMultiplexer::Implementation
 

Typedefs

typedef int socklen_t
 

Functions

static void SockaddrFromIpEndpointName (struct sockaddr_in &sockAddr, const IpEndpointName &endpoint)
 
static IpEndpointName IpEndpointNameFromSockaddr (const struct sockaddr_in &sockAddr)
 
static bool CompareScheduledTimerCalls (const std::pair< double, AttachedTimerListener > &lhs, const std::pair< double, AttachedTimerListener > &rhs)
 
void InterruptSignalHandler (int)
 

Variables

SocketReceiveMultiplexermultiplexerInstanceToAbortWithSigInt_ = 0
 

Typedef Documentation

◆ socklen_t

typedef int socklen_t

Function Documentation

◆ CompareScheduledTimerCalls()

static bool CompareScheduledTimerCalls ( const std::pair< double, AttachedTimerListener > &  lhs,
const std::pair< double, AttachedTimerListener > &  rhs 
)
static

◆ InterruptSignalHandler()

void InterruptSignalHandler ( int  )

◆ IpEndpointNameFromSockaddr()

static IpEndpointName IpEndpointNameFromSockaddr ( const struct sockaddr_in &  sockAddr)
static

◆ SockaddrFromIpEndpointName()

static void SockaddrFromIpEndpointName ( struct sockaddr_in &  sockAddr,
const IpEndpointName endpoint 
)
static

Variable Documentation

◆ multiplexerInstanceToAbortWithSigInt_

SocketReceiveMultiplexer* multiplexerInstanceToAbortWithSigInt_ = 0