All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
sockets.c File Reference
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include <rfb/rfbclient.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "tls.h"
+ Include dependency graph for sockets.c:

Go to the source code of this file.


void PrintInHex (char *buf, int len)
rfbBool ReadFromRFBServer (rfbClient *client, char *out, unsigned int n)
rfbBool WriteToRFBServer (rfbClient *client, char *buf, int n)
int ConnectClientToTcpAddr (unsigned int host, int port)
int ConnectClientToTcpAddr6 (const char *hostname, int port)
int ConnectClientToUnixSock (const char *sockFile)
int FindFreeTcpPort (void)
int ListenAtTcpPort (int port)
int ListenAtTcpPortAndAddress (int port, const char *address)
int AcceptTcpConnection (int listenSock)
rfbBool SetNonBlocking (int sock)
rfbBool SetDSCP (int sock, int dscp)
rfbBool StringToIPAddr (const char *str, unsigned int *addr)
rfbBool SameMachine (int sock)
int WaitForMessage (rfbClient *client, unsigned int usecs)
 Waits for an RFB message to arrive from the server. More...


rfbBool errorMessageOnReadFailure = TRUE

Function Documentation

void PrintInHex ( char *  buf,
int  len 

Definition at line 748 of file sockets.c.