|
static u16 | Base64Encode (const u8 *cSourceData, u16 wSourceLen, u8 *cDestData, u16 wDestLen) |
|
static int | GenereateWebSockeyKey (const u8 *url, u32 urllen, char *buffer) |
|
static char | hexatochar (char hi_c, char lo_c) |
|
static u32 | resolveDNSCache (yUrlRef url, char *errmsg) |
|
static int | uuidToSerial (const char *uuid, char *serial) |
|
static int | VerifyWebsocketKey (const char *data, u16 hdrlen, const char *reference, u16 reference_len) |
|
static void | ws_appendTCPData (RequestSt *req, u8 *buffer, int pktlen, int isClose) |
|
static void | ws_closeBaseSocket (struct _WSNetHubSt *base_req) |
|
static int | ws_openBaseSocket (struct _WSNetHubSt *hub, yUrlRef url, const char *request, int request_len, int mstimout, char *errmsg) |
|
static int | ws_parseIncommingFrame (HubSt *hub, u8 *buffer, int pktlen, char *errmsg) |
|
static int | ws_processRequests (HubSt *hub, char *errmsg) |
|
static int | ws_requestStillPending (HubSt *hub) |
|
static int | ws_sendAuthenticationMeta (HubSt *hub, char *errmsg) |
|
static int | ws_sendFrame (HubSt *hub, int stream, int tcpchan, const u8 *data, int datalen, char *errmsg) |
|
void * | ws_thread (void *ctx) |
|
static int | ws_thread_select (struct _WSNetHubSt *base_req, u64 ms, WakeUpSocket *wuce, char *errmsg) |
|
static void | ws_threadUpdateRetryCount (HubSt *hub) |
|
int | yConsumeWakeUpSocket (WakeUpSocket *wuce, char *errmsg) |
|
YSTATIC int | yDetectNetworkInterfaces (u32 only_ip) |
|
int | yDringWakeUpSocket (WakeUpSocket *wuce, u8 signal, char *errmsg) |
|
void | yDupSet (char **storage, const char *val) |
|
void | yFreeWakeUpSocket (WakeUpSocket *wuce) |
|
static void | yHTTPCloseReqEx (struct _RequestSt *req, int canReuseSocket) |
|
static int | yHTTPMultiSelectReq (struct _RequestSt **reqs, int size, u64 ms, WakeUpSocket *wuce, char *errmsg) |
|
static int | yHTTPOpenReqEx (struct _RequestSt *req, u64 mstimout, char *errmsg) |
|
void | yInitWakeUpSocket (WakeUpSocket *wuce) |
|
static int | yNetLogErrEx (u32 line, unsigned err) |
|
int | yNetSetErrEx (u32 line, unsigned err, char *errmsg) |
|
struct _RequestSt * | yReqAlloc (struct _HubSt *hub) |
|
void | yReqClose (struct _RequestSt *req) |
|
void | yReqFree (struct _RequestSt *req) |
|
int | yReqGet (struct _RequestSt *req, u8 **buffer) |
|
int | yReqHasPending (struct _HubSt *hub) |
|
int | yReqIsAsync (struct _RequestSt *req) |
|
int | yReqIsEof (struct _RequestSt *req, char *errmsg) |
|
int | yReqMultiSelect (struct _RequestSt **tcpreq, int size, u64 ms, WakeUpSocket *wuce, char *errmsg) |
|
int | yReqOpen (struct _RequestSt *req, int wait_for_start, int tcpchan, const char *request, int reqlen, u64 mstimeout, yapiRequestAsyncCallback callback, void *context, RequestProgress progress_cb, void *progress_ctx, char *errmsg) |
|
int | yReqRead (struct _RequestSt *req, u8 *buffer, int len) |
|
int | yReqSelect (struct _RequestSt *tcpreq, u64 ms, char *errmsg) |
|
u32 | yResolveDNS (const char *name, char *errmsg) |
|
static void | ySSDP_parseSSPDMessage (SSDPInfos *SSDP, char *message, int msg_len) |
|
static void * | ySSDP_thread (void *ctx) |
|
static void | ySSDPCheckExpiration (SSDPInfos *SSDP) |
|
int | ySSDPDiscover (SSDPInfos *SSDP, char *errmsg) |
|
int | ySSDPStart (SSDPInfos *SSDP, ssdpHubDiscoveryCallback callback, char *errmsg) |
|
void | ySSDPStop (SSDPInfos *SSDP) |
|
static void | ySSDPUpdateCache (SSDPInfos *SSDP, const char *uuid, const char *url, int cacheValidity) |
|
int | yStartWakeUpSocket (WakeUpSocket *wuce, char *errmsg) |
|
static int | yTcpCheckReqTimeout (struct _RequestSt *req, char *errmsg) |
|
static int | yTcpCheckSocketStillValid (YSOCKET skt, char *errmsg) |
|
static void | yTcpClose (YSOCKET skt) |
|
int | yTcpDownload (const char *host, const char *url, u8 **out_buffer, u32 mstimeout, char *errmsg) |
|
int | yTcpInit (char *errmsg) |
|
static int | yTcpOpen (YSOCKET *newskt, u32 ip, u16 port, u64 mstimeout, char *errmsg) |
|
static int | yTcpRead (YSOCKET skt, u8 *buffer, int len, char *errmsg) |
|
void | yTcpShutdown (void) |
|
static int | yTcpWrite (YSOCKET skt, const char *buffer, int len, char *errmsg) |
|
static void | yWSCloseReqEx (struct _RequestSt *req, int takeCS) |
|
static int | yWSOpenReqEx (struct _RequestSt *req, int tcpchan, u64 mstimeout, char *errmsg) |
|
static int | yWSSelectReq (struct _RequestSt *req, u64 mstimeout, char *errmsg) |
|