Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 124449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:00:07+00:00 2026-05-11T05:00:07+00:00

Why I always get WSAETIMEDOUT error in this code : var fUDPBuf: array [1..UdpPacketSize]

  • 0

Why I always get WSAETIMEDOUT error in this code :

var fUDPBuf: array [1..UdpPacketSize] of byte; {...} UDPSocket := TUDPBlockSocket.Create; UDPSocket.Bind(UDPIP, UDPPort); if UDPSocket.LastError = 0 then   Raise EDevFail.Create(Format(SPortFailed, [UDPPort]));  while not Terminated do begin   BytesRead := UDPSocket.RecvBufferEx(@fUDPBuf[1], UdpPacketSize, 1000);   if BytesRead <= 0 then     case UDPSocket.LastError of       0, WSAETIMEDOUT: Continue;       WSAECONNRESET, WSAENETRESET,       WSAENOTCONN, WSAECONNABORTED,       WSAENETDOWN: begin                      Raise EDevFail.Create(UDPSocket.GetErrorDesc(UDPSocket.LastError));                      UDPSocket.CloseSocket;                    end;       else begin         Raise EDevFail.Create(UDPSocket.GetErrorDesc(UDPSocket.LastError));         UDPSocket.CloseSocket;       end;     end;    //Sleep(1);   ProcessData(@fUDPBuf[1]);   inc(PacketCount); end; 

I’m sure that I receive UDP data from e network device as much as UdpPacketSize.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T05:00:08+00:00Added an answer on May 11, 2026 at 5:00 am

    I solved my problem 🙂

    UDPSocket.Bind(UDPIP, UDPPort); 

    must be

    UDPSocket.Bind('0.0.0.0', UDPPort); 

    And

    if UDPSocket.LastError = 0 then 

    must be

    if UDPSocket.LastError <> 0 then 

    For to check IP address where data come from

    if UDPSocket.GetRemoteSinIP<>UDPIP then .... 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 510k
  • Answers 510k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I would use java as the language and expose a… May 16, 2026 at 4:54 pm
  • Editorial Team
    Editorial Team added an answer (This answer was written for C++03, the situation may have… May 16, 2026 at 4:54 pm
  • Editorial Team
    Editorial Team added an answer If they're kwargs, you could do something like this: def… May 16, 2026 at 4:54 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I always get this error when trying to compile my file with Boost::GIL PNG
I always get java.lang.OutOfMemoryError: Java heap space error when I try to run any
I always get the undefined index notice, when I run this on wampserver. Tried
I found the code to record audio, but I always get: The method setOutputFile(FileDescriptor)
when I bind the wpf datepicker SelectedDate I get this 2010-08-25 08:15:33. As I
I always get stuck on foreign keys so I have a question about where
I always get confused when I am about to use a bit map to
I always get confused with licenses, I'm reading up again, but I'm sure someone
I always get confused. Would someone explain what Reentrant means in different contexts? And
I always get confused between the static and dynamic scoping and hence need someone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.