Fixed unused variable and improved Kconfig for TCP IPC Client & Server
This commit is contained in:
parent
0d2ef47192
commit
00bd5a2edf
@ -6,9 +6,15 @@
|
|||||||
config EXAMPLES_TCP_IPC_CLIENT
|
config EXAMPLES_TCP_IPC_CLIENT
|
||||||
bool "Client for TCP IPC NuttX"
|
bool "Client for TCP IPC NuttX"
|
||||||
default n
|
default n
|
||||||
depends on NET_TCP
|
select ARCH_HAVE_NET
|
||||||
depends on NET_SOCKOPTS
|
select ARCH_HAVE_NETDEV_STATISTICS
|
||||||
|
select NET_READAHEAD
|
||||||
|
select NET_TCP
|
||||||
|
select NET
|
||||||
|
select NET_SOCKOPTS
|
||||||
select NET_LOOPBACK
|
select NET_LOOPBACK
|
||||||
|
select NETDEV_LATEINIT
|
||||||
|
select SCHED_HPWORK
|
||||||
---help---
|
---help---
|
||||||
Enable the Client for TCP IPC NuttX example
|
Enable the Client for TCP IPC NuttX example
|
||||||
|
|
||||||
|
@ -105,7 +105,6 @@ int main(int argc, char *argv[])
|
|||||||
int bytes_read_from_server = 0;
|
int bytes_read_from_server = 0;
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
protocolo_ipc tprotocol;
|
protocolo_ipc tprotocol;
|
||||||
int ndx;
|
|
||||||
|
|
||||||
/* Check if there are sufficient arguments passed to this program */
|
/* Check if there are sufficient arguments passed to this program */
|
||||||
|
|
||||||
@ -115,7 +114,6 @@ int main(int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ndx = 1;
|
|
||||||
if (strcmp(argv[1], "-h") == 0)
|
if (strcmp(argv[1], "-h") == 0)
|
||||||
{
|
{
|
||||||
show_usage(argv[0]);
|
show_usage(argv[0]);
|
||||||
|
@ -6,9 +6,15 @@
|
|||||||
config EXAMPLES_TCP_IPC_SERVER
|
config EXAMPLES_TCP_IPC_SERVER
|
||||||
bool "Server for TCP IPC NuttX"
|
bool "Server for TCP IPC NuttX"
|
||||||
default n
|
default n
|
||||||
depends on NET_TCP
|
select ARCH_HAVE_NET
|
||||||
depends on NET_SOCKOPTS
|
select ARCH_HAVE_NETDEV_STATISTICS
|
||||||
|
select NET_READAHEAD
|
||||||
|
select NET_TCP
|
||||||
|
select NET
|
||||||
|
select NET_SOCKOPTS
|
||||||
select NET_LOOPBACK
|
select NET_LOOPBACK
|
||||||
|
select NETDEV_LATEINIT
|
||||||
|
select SCHED_HPWORK
|
||||||
---help---
|
---help---
|
||||||
Enable the TCP SERVER example
|
Enable the TCP SERVER example
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user