OpenOCD
transport_tcp.c File Reference

Transport abstraction layer (TCP/IP). More...

Include dependency graph for transport_tcp.c:

Go to the source code of this file.

Functions

static int _recv (struct jaylink_device_handle *devh, uint8_t *buffer, size_t length)
 
static int _send (struct jaylink_device_handle *devh, const uint8_t *buffer, size_t length)
 
static bool adjust_buffer (struct jaylink_device_handle *devh, size_t size)
 
static void cleanup_handle (struct jaylink_device_handle *devh)
 
static int handle_server_hello (struct jaylink_device_handle *devh)
 
static int initialize_handle (struct jaylink_device_handle *devh)
 
static int set_socket_timeouts (struct jaylink_device_handle *devh)
 
JAYLINK_PRIV int transport_tcp_close (struct jaylink_device_handle *devh)
 
JAYLINK_PRIV int transport_tcp_open (struct jaylink_device_handle *devh)
 
JAYLINK_PRIV int transport_tcp_read (struct jaylink_device_handle *devh, uint8_t *buffer, size_t length)
 
JAYLINK_PRIV int transport_tcp_start_read (struct jaylink_device_handle *devh, size_t length)
 
JAYLINK_PRIV int transport_tcp_start_write (struct jaylink_device_handle *devh, size_t length, bool has_command)
 
JAYLINK_PRIV int transport_tcp_start_write_read (struct jaylink_device_handle *devh, size_t write_length, size_t read_length, bool has_command)
 
JAYLINK_PRIV int transport_tcp_write (struct jaylink_device_handle *devh, const uint8_t *buffer, size_t length)
 

Detailed Description

Transport abstraction layer (TCP/IP).

Definition in file transport_tcp.c.

Function Documentation

◆ _recv()

static int _recv ( struct jaylink_device_handle devh,
uint8_t *  buffer,
size_t  length 
)
static

◆ _send()

static int _send ( struct jaylink_device_handle devh,
const uint8_t *  buffer,
size_t  length 
)
static

◆ adjust_buffer()

static bool adjust_buffer ( struct jaylink_device_handle devh,
size_t  size 
)
static

◆ cleanup_handle()

static void cleanup_handle ( struct jaylink_device_handle devh)
static

Definition at line 99 of file transport_tcp.c.

References jaylink_device_handle::buffer.

Referenced by transport_tcp_close(), and transport_tcp_open().

◆ handle_server_hello()

static int handle_server_hello ( struct jaylink_device_handle devh)
static

◆ initialize_handle()

◆ set_socket_timeouts()

◆ transport_tcp_close()

JAYLINK_PRIV int transport_tcp_close ( struct jaylink_device_handle devh)

◆ transport_tcp_open()

◆ transport_tcp_read()

◆ transport_tcp_start_read()

◆ transport_tcp_start_write()

◆ transport_tcp_start_write_read()

◆ transport_tcp_write()