diff --git a/examples/client-tcp.c b/examples/linux/client-tcp.c similarity index 96% rename from examples/client-tcp.c rename to examples/linux/client-tcp.c index 0f24cb5..cca664c 100644 --- a/examples/client-tcp.c +++ b/examples/linux/client-tcp.c @@ -2,8 +2,8 @@ * This example application connects via TCP to a modbus server at the specified address and port, and sends some * modbus requests to it. * - * Since the platform for this example is linux, the platform arg is used to pass (to the linux TCP read/write - * functions) a pointer to the file descriptor of our TCP connection + * Since the platform for this example is linux, the platform arg is used to pass (to the linux file descriptor + * read/write functions) a pointer to the file descriptor of our TCP connection * */ diff --git a/examples/platform.h b/examples/linux/platform.h similarity index 100% rename from examples/platform.h rename to examples/linux/platform.h diff --git a/examples/server-tcp.c b/examples/linux/server-tcp.c similarity index 95% rename from examples/server-tcp.c rename to examples/linux/server-tcp.c index a554d6e..5c5b9b0 100644 --- a/examples/server-tcp.c +++ b/examples/linux/server-tcp.c @@ -2,14 +2,14 @@ * This example application sets up a TCP server at the specified address and port, and polls from modbus requests * from more than one modbus client (more specifically from maximum 1024 clients, since it uses select()) * - * This example server supports the following function codes: + * This server supports the following function codes: * FC 01 (0x01) Read Coils * FC 03 (0x03) Read Holding Registers * FC 15 (0x0F) Write Multiple Coils * FC 16 (0x10) Write Multiple registers * - * Since the platform for this example is linux, the platform arg is used to pass (to the linux TCP read/write - * functions) a pointer to the file descriptor of the current read client connection + * Since the platform for this example is linux, the platform arg is used to pass (to the linux file descriptor + * read/write functions) a pointer to the file descriptor of the current read client connection * */