rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions | Variables
ethernet_console.cpp File Reference

Functions

static void do_connection ()
 

Variables

static int listenerSocket = -1
 
static int connectionSocket = -1
 
static EthernetChannel ethChannel
 
static EthernetThread ethernetConsole
 

Function Documentation

◆ do_connection()

static void do_connection ( )
static

Definition at line 15 of file ethernet_console.cpp.

15 {
16 if (connectionSocket != -1) {
17 auto localCopy = connectionSocket;
19
20 lwip_close(localCopy);
21 }
22
23 sockaddr_in remote;
24 socklen_t size = sizeof(remote);
25 connectionSocket = lwip_accept(listenerSocket, (sockaddr*)&remote, &size);
26}
static int connectionSocket
static int listenerSocket
composite packet size

Variable Documentation

◆ connectionSocket

int connectionSocket = -1
static

Definition at line 13 of file ethernet_console.cpp.

Referenced by do_connection().

◆ ethChannel

EthernetChannel ethChannel
static

Definition at line 58 of file ethernet_console.cpp.

◆ ethernetConsole

EthernetThread ethernetConsole
static

Definition at line 81 of file ethernet_console.cpp.

Referenced by EthernetConsoleModule::initNoConfiguration().

◆ listenerSocket

int listenerSocket = -1
static

Definition at line 12 of file ethernet_console.cpp.

Referenced by do_connection().

Go to the source code of this file.