comp.lang.ada
 help / color / mirror / Atom feed
* GNAT Sockets UDP problem on Windows 10.
@ 2018-11-23  6:27 Petter Fryklund
  2018-11-23  8:41 ` Petter Fryklund
  0 siblings, 1 reply; 2+ messages in thread
From: Petter Fryklund @ 2018-11-23  6:27 UTC (permalink / raw)


Hi all,

I get socket error 10051, network unreachable when trying to send on Windows 10. Everything works fine on Windows 7. Also, Delphi programs work fine on Windows 10. What is special with GNAT Sockets and what do I do to overcome this hurdle?

Regards,
Petter

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: GNAT Sockets UDP problem on Windows 10.
  2018-11-23  6:27 GNAT Sockets UDP problem on Windows 10 Petter Fryklund
@ 2018-11-23  8:41 ` Petter Fryklund
  0 siblings, 0 replies; 2+ messages in thread
From: Petter Fryklund @ 2018-11-23  8:41 UTC (permalink / raw)


Den fredag 23 november 2018 kl. 07:27:45 UTC+1 skrev Petter Fryklund:
> Hi all,
> 
> I get socket error 10051, network unreachable when trying to send on Windows 10. Everything works fine on Windows 7. Also, Delphi programs work fine on Windows 10. What is special with GNAT Sockets and what do I do to overcome this hurdle?
> 
> Regards,
> Petter

When creating the reproducer I first found out that I mistakenly had copied code from a TCP client that also did Connect. When that was fixed I found that I had made an unnecessary Bind of the sending socket (as a response to the compiler warning that  the socket was read but not initialized), strangely this was alright on W7, but not on W10. We are now fine (for now ;-)

Regards,
Petter


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-23  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-23  6:27 GNAT Sockets UDP problem on Windows 10 Petter Fryklund
2018-11-23  8:41 ` Petter Fryklund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox