Home
last modified time | relevance | path

Searched refs:socket_fd (Results 1 – 1 of 1) sorted by relevance

/Renode-v1.15.3-c57714d/tools/external_control_client/lib/
Drenode_api.c24 int socket_fd; member
159 static renode_error_t *write_or_fail(int socket_fd, const uint8_t *data, ssize_t count) in write_or_fail() argument
165 while (count > 0 && (sent = write(socket_fd, data, count)) > 0) { in write_or_fail()
176 static renode_error_t *read_byte_or_fail(int socket_fd, uint8_t *value) in read_byte_or_fail() argument
180 if ((received = read(socket_fd, value, 1)) == 1) { in read_byte_or_fail()
192 static renode_error_t *read_or_fail(int socket_fd, uint8_t *buffer, uint32_t count) in read_or_fail() argument
198 while (count > 0 && (received = read(socket_fd, buffer, count)) > 0) { in read_or_fail()
214 static renode_error_t *perform_handshake(int socket_fd) in perform_handshake() argument
218 …return_error_if_fails(write_or_fail(socket_fd, (uint8_t *)command_versions, sizeof(command_version… in perform_handshake()
222 return_error_if_fails(read_byte_or_fail(socket_fd, &response)); in perform_handshake()
[all …]