Android-cuttlefish cvd tool
Classes | Namespaces | Functions
socket.h File Reference
#include <stddef.h>
#include <deque>
#include <memory>
#include <optional>
#include <string>
#include "adb_unique_fd.h"
#include "fdevent/fdevent.h"
#include "types.h"
Include dependency graph for socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  asocket
 

Namespaces

namespace  internal
 

Functions

asocketfind_local_socket (unsigned local_id, unsigned remote_id)
 
void install_local_socket (asocket *s)
 
void remove_socket (asocket *s)
 
void close_all_sockets (atransport *t)
 
void local_socket_ack (asocket *s, std::optional< int32_t > acked_bytes)
 
asocketcreate_local_socket (unique_fd fd)
 
asocketcreate_local_service_socket (std::string_view destination, atransport *transport)
 
asocketcreate_remote_socket (unsigned id, atransport *t)
 
void connect_to_remote (asocket *s, std::string_view destination)
 

Function Documentation

◆ close_all_sockets()

void close_all_sockets ( atransport t)

◆ connect_to_remote()

void connect_to_remote ( asocket s,
std::string_view  destination 
)

◆ create_local_service_socket()

asocket * create_local_service_socket ( std::string_view  destination,
atransport transport 
)

◆ create_local_socket()

asocket * create_local_socket ( unique_fd  fd)

◆ create_remote_socket()

asocket * create_remote_socket ( unsigned  id,
atransport t 
)

◆ find_local_socket()

asocket * find_local_socket ( unsigned  local_id,
unsigned  remote_id 
)

◆ install_local_socket()

void install_local_socket ( asocket s)

◆ local_socket_ack()

void local_socket_ack ( asocket s,
std::optional< int32_t >  acked_bytes 
)

◆ remove_socket()

void remove_socket ( asocket s)