Thanks Kevin, so I tried that....but every time jtcp times out, it throws an error:
Error using jtcp>jtcp_accept_connection (line 327)
Java exception occurred:
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
Error in jtcp (line 232)
jTcpObj = jtcp_accept_connection(port,timeout,serialize);
So, if i could figure out a way to get it to timeout quietly and just get on with the rest of the code, that would work...
If you set the server to 'accept' a transmission with a long timeout, say 20 minutes, how do you abort the process? CTL+C doesn't seem to do anything. It just hangs until the process times out. I'd like to be able to abort sooner without having to shut down all of matlab and restarting.