FreeRDP
websocket.c File Reference
#include "websocket.h"
#include <freerdp/log.h>
#include "../tcp.h"

Macros

#define TAG   FREERDP_TAG("core.gateway.websocket")
 

Functions

BOOL websocket_write_wstream (BIO *bio, wStream *sPacket, WEBSOCKET_OPCODE opcode)
 
static int websocket_write_all (BIO *bio, const BYTE *data, size_t length)
 
int websocket_write (BIO *bio, const BYTE *buf, int isize, WEBSOCKET_OPCODE opcode)
 
static int websocket_read_data (BIO *bio, BYTE *pBuffer, size_t size, websocket_context *encodingContext)
 
static int websocket_read_discard (BIO *bio, websocket_context *encodingContext)
 
static int websocket_read_wstream (BIO *bio, wStream *s, websocket_context *encodingContext)
 
static BOOL websocket_reply_close (BIO *bio, wStream *s)
 
static BOOL websocket_reply_pong (BIO *bio, wStream *s)
 
static int websocket_handle_payload (BIO *bio, BYTE *pBuffer, size_t size, websocket_context *encodingContext)
 
int websocket_read (BIO *bio, BYTE *pBuffer, size_t size, websocket_context *encodingContext)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("core.gateway.websocket")

FreeRDP: A Remote Desktop Protocol Implementation Websocket Framing

Copyright 2023 Michael Saxl mike@.nosp@m.mwsy.nosp@m.s.min.nosp@m.e.bz

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ websocket_handle_payload()

static int websocket_handle_payload ( BIO *  bio,
BYTE pBuffer,
size_t  size,
websocket_context encodingContext 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_read()

int websocket_read ( BIO *  bio,
BYTE pBuffer,
size_t  size,
websocket_context encodingContext 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_read_data()

static int websocket_read_data ( BIO *  bio,
BYTE pBuffer,
size_t  size,
websocket_context encodingContext 
)
static
Here is the caller graph for this function:

◆ websocket_read_discard()

static int websocket_read_discard ( BIO *  bio,
websocket_context encodingContext 
)
static
Here is the caller graph for this function:

◆ websocket_read_wstream()

static int websocket_read_wstream ( BIO *  bio,
wStream s,
websocket_context encodingContext 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_reply_close()

static BOOL websocket_reply_close ( BIO *  bio,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_reply_pong()

static BOOL websocket_reply_pong ( BIO *  bio,
wStream s 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_write()

int websocket_write ( BIO *  bio,
const BYTE buf,
int  isize,
WEBSOCKET_OPCODE  opcode 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_write_all()

static int websocket_write_all ( BIO *  bio,
const BYTE data,
size_t  length 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ websocket_write_wstream()

BOOL websocket_write_wstream ( BIO *  bio,
wStream sPacket,
WEBSOCKET_OPCODE  opcode 
)
Here is the call graph for this function:
Here is the caller graph for this function: