The pinout in the schematic is not correct. Instead it is:
| GPIO | Function |
|---|---|
| 6 | M0_JTAG_TMS |
| 7 | M0_JTAG_TDO |
| 12 | M0_JTAG_TCLK |
| 13 | M0_JTAG_TDI |
| /* | |
| C socket server example, handles multiple clients using threads | |
| Compile | |
| gcc server.c -lpthread -o server | |
| */ | |
| #include<stdio.h> | |
| #include<string.h> //strlen | |
| #include<stdlib.h> //strlen | |
| #include<sys/socket.h> |