Jump to content

Winsock UDP programing for DHCP frames


Recommended Posts

Hello,

I have been looking for DHCP code to receive a request from a remote computer.  The test program is compiled with Builder 5 C++. 

This how my test is illustrated:

Test Unit ------------------------------- Work Station
  no Keyboard                                   with Kbd,CRT
  no CRET                                         Borland Builder 5
 10 MHz Ethernet                               C++

When I recycle the PXE to restart, I captured the first several two frames. 
The first frames of data look okay.  (as a matter of fact the PXE process works OK!)
So these two frames are "Golden Results".

I used builder, with taking from many examples, to create code that should behave as the Golden Result.

When the test code receives the frame 1 from the test unit,  The workstations receives the data correctly.

Then the workstation code  is to reply to Test Unit.  However before the code can execute sendto(), the error 10049.

I am hoping there is problem with my code.

I can not find the problem!
 

Some help would surely be appreciated :wacko:

DHCP_test.cpp

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...