Sponge
CS144's user-space TCP library
Classes
socket.hh File Reference
#include "address.hh"
#include "file_descriptor.hh"
#include <cstdint>
#include <functional>
#include <string>
#include <sys/socket.h>
Include dependency graph for socket.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LocalStreamSocket
 A wrapper around Unix-domain stream sockets. More...
 
struct  UDPSocket::received_datagram
 Returned by UDPSocket::recv; carries received data and information about the sender. More...
 
class  Socket
 Base class for network sockets (TCP, UDP, etc.) More...
 
class  TCPSocket
 A wrapper around TCP sockets. More...
 
class  UDPSocket
 A wrapper around UDP sockets. More...
 

Class Documentation

◆ UDPSocket::received_datagram

struct UDPSocket::received_datagram

Returned by UDPSocket::recv; carries received data and information about the sender.

Definition at line 62 of file socket.hh.

Class Members
string payload UDP datagram payload.
Address source_address Address from which this datagram was received.