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

  • Home
  • SEARCH
  • 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

Related Questions

I always get this error when trying to compile my file with Boost::GIL PNG
I'm trying to get this running: JAXB interface But I always get the error
in this block of code my uiimageview always get nil.as a result the code
When I compile my Android Project I always get this Error: Error generating final
I always get either malloc() error. Here is the code: char *data = malloc(200);
It seems like I always get this error on one of my scripts: /Users/amosng/.rvm/gems/ruby-1.9.3-p194/gems/ruby-prof-0.11.2/lib/ruby-prof/profile.rb:25:
I always get this error public class FlightAvailabityGoActivity extends ListActivity { String[] monthName =
When trying to connect to mysql I always get this error: java.sql.SQLException: No suitable
(int) faultsGroup is 0 or 1 but i always get this error: Column 'FaultGroup'
I always get this error when I run my program... i'm not sure about

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.