I run the RTCS on MK60 to transfer data from uart to ethernet , following the order : socket(), bind(), connect(), send() ,shutdown(ABORT_CONNECTION);then re-socket() re-bind() are successful, re-connect() is error and return 1704.
Could you please let me know which MQX version are you using??
For MQX 4.2 you can check the eth_to_serial example (C:\Freescale\Freescale_MQX_4_2\rtcs\examples). The eth_to_serial example code demonstrates a simple character passing between UART console and socket.
For MQX for KSDK please check the eth_to_serial example at the path: C:\Freescale\KSDK_1.2.0\middleware\tcpip\rtcs\examples\eth_to_serial
You can use these example as reference.
Have a nice day!
Retrieving data ...