Kconfig.projbuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. menu "Example Configuration"
  2. config EXAMPLE_TCP_SERVER
  3. bool "TCP server"
  4. default n
  5. help
  6. This example will setup a tcp server, binds it to the specified address
  7. and starts listening
  8. if EXAMPLE_TCP_SERVER
  9. config EXAMPLE_TCP_SERVER_BIND_ADDRESS
  10. string "Server bind address"
  11. default "0.0.0.0"
  12. help
  13. Server listener's socket would be bound to this address. This address could be
  14. either IPv4 or IPv6 address
  15. config EXAMPLE_TCP_SERVER_BIND_PORT
  16. string "Server bind port"
  17. default "3344"
  18. help
  19. Server listener's socket would be bound to this port.
  20. endif
  21. config EXAMPLE_TCP_CLIENT
  22. bool "TCP client"
  23. default y
  24. help
  25. This example will setup a tcp client, connects to the specified address
  26. and sends the data.
  27. if EXAMPLE_TCP_CLIENT
  28. config EXAMPLE_TCP_CLIENT_CONNECT_ADDRESS
  29. string "Client connection address or hostname"
  30. default "www.google.com"
  31. help
  32. Client's socket would connect to this address/host.
  33. config EXAMPLE_TCP_CLIENT_CONNECT_PORT
  34. string "Client connection port"
  35. default "80"
  36. help
  37. Client connection port.
  38. endif
  39. endmenu