libguac 1.5.5
Loading...
Searching...
No Matches
Functions
socket-wsa.h File Reference

Provides an implementation of guac_socket specific to the Windows Socket API (aka WSA or "winsock"). More...

Go to the source code of this file.

Functions

guac_socketguac_socket_open_wsa (SOCKET sock)
 Creates a new guac_socket which will use the Windows Socket API (aka WSA or "winsock") for all communication.
 

Detailed Description

Provides an implementation of guac_socket specific to the Windows Socket API (aka WSA or "winsock").

This header will only be available if libguac was built with WSA support.

Function Documentation

◆ guac_socket_open_wsa()

guac_socket * guac_socket_open_wsa ( SOCKET sock)

Creates a new guac_socket which will use the Windows Socket API (aka WSA or "winsock") for all communication.

Freeing this guac_socket will automatically close the associated SOCKET handle.

Parameters
sockThe WSA SOCKET handle to use for the connection underlying the created guac_socket.
Returns
A newly-allocated guac_socket which will transparently use the Windows Socket API for all communication.