how to open socket using API TX IPV4 frame without first sending data

,

The PC application will start streaming data once socket is connected. But if it received some unexpected data, it stopped.
So, I need to open a socket without first sending data.
Any solution?
Thanks you.