Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI think that normally send() would return if the link goes down. At least this is what happens in my system; but maybe the behaviour is related to the mac-phy you are using.
Alternatively you can configure the socket in non blocking mode. In this way send() always returns and then you can test the link and decide if you want call send() again or reset the connection.