webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
transport_common.cc File Reference
#include <openssl/base.h>
#include <string>
#include <vector>
#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <unistd.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include "internal.h"
#include "transport_common.h"

Classes

class  SocketLineReader
 

Functions

bool InitSocketLibrary ()
 
bool Connect (int *out_sock, const std::string &hostname_and_port)
 
bool Accept (int *out_sock, const std::string &port)
 
bool VersionFromString (uint16_t *out_version, const std::string &version)
 
void PrintConnectionInfo (const SSL *ssl)
 
bool SocketSetNonBlocking (int sock, bool is_non_blocking)
 
int PrintErrorCallback (const char *str, size_t len, void *ctx)
 
bool TransferData (SSL *ssl, int sock)
 
bool DoSMTPStartTLS (int sock)
 

Function Documentation

◆ Accept()

bool Accept ( int *  out_sock,
const std::string port 
)

◆ Connect()

bool Connect ( int *  out_sock,
const std::string hostname_and_port 
)

◆ DoSMTPStartTLS()

bool DoSMTPStartTLS ( int  sock)

◆ InitSocketLibrary()

bool InitSocketLibrary ( )

◆ PrintConnectionInfo()

void PrintConnectionInfo ( const SSL ssl)

◆ PrintErrorCallback()

int PrintErrorCallback ( const char *  str,
size_t  len,
void ctx 
)

◆ SocketSetNonBlocking()

bool SocketSetNonBlocking ( int  sock,
bool  is_non_blocking 
)

◆ TransferData()

bool TransferData ( SSL ssl,
int  sock 
)

◆ VersionFromString()

bool VersionFromString ( uint16_t out_version,
const std::string version 
)