VxWorks 6.9 returns EISCONN when using sendto() with addr on TCP

This commit is contained in:
2022-02-10 17:17:29 +01:00
parent 75aa484a28
commit e7b0e072ce

View File

@@ -121,6 +121,13 @@ int lock_needed;
while(pclient->send.stk&&!pclient->disconnect){
if (pclient->proto == IPPROTO_TCP)
status = send(
pclient->sock,
pclient->send.buf,
pclient->send.stk,
NULL);
else
status = sendto(
pclient->sock,
pclient->send.buf,