![]() |
Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
|
TCP server to feed XCsoar with flight data. More...
#include "system_configuration.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <netdb.h>#include <netinet/in.h>#include <sys/socket.h>#include <sys/types.h>#include "TCP_server.h"Go to the source code of this file.
Enumerations | |
| enum | { MAX_CLIENTS =10 } |
Functions | |
| bool | accept_TCP_client (bool wait_for_client) |
| bool | open_TCP_port (void) |
| void | write_TCP_port (char *data, unsigned length) |
| void | close_TCP_port (void) |
Variables | |
| int | listening_socket_file_descriptor |
| struct sockaddr_in servaddr | cli |
| socklen_t | len |
| int | TCP_clients [MAX_CLIENTS] |
| int | number_of_TCP_clients = 0 |
TCP server to feed XCsoar with flight data.
<Larus Flight Sensor Firmware>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file TCP_server.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| MAX_CLIENTS | |
Definition at line 50 of file TCP_server.cpp.
Definition at line 54 of file TCP_server.cpp.
References cli, len, listening_socket_file_descriptor, MAX_CLIENTS, number_of_TCP_clients, TCP_clients, and vector< datatype, size >::vector().
Referenced by write_TCP_port().
Definition at line 164 of file TCP_server.cpp.
References listening_socket_file_descriptor, number_of_TCP_clients, TCP_clients, and vector< datatype, size >::vector().
Definition at line 82 of file TCP_server.cpp.
References cli, len, listening_socket_file_descriptor, TCP_PORT, and vector< datatype, size >::vector().
Definition at line 135 of file TCP_server.cpp.
References accept_TCP_client(), number_of_TCP_clients, TCP_clients, and vector< datatype, size >::vector().
Definition at line 44 of file TCP_server.cpp.
Referenced by accept_TCP_client(), and open_TCP_port().
| socklen_t len |
Definition at line 48 of file TCP_server.cpp.
Referenced by accept_TCP_client(), open_TCP_port(), and read_EEPROM_file().
| int listening_socket_file_descriptor |
Definition at line 43 of file TCP_server.cpp.
Referenced by accept_TCP_client(), close_TCP_port(), and open_TCP_port().
| int number_of_TCP_clients = 0 |
Definition at line 52 of file TCP_server.cpp.
Referenced by accept_TCP_client(), close_TCP_port(), and write_TCP_port().
| int TCP_clients[MAX_CLIENTS] |
Definition at line 51 of file TCP_server.cpp.
Referenced by accept_TCP_client(), close_TCP_port(), and write_TCP_port().