Delay related to networking?

  • Thread starter Thread starter Matt Ervin
  • Start date Start date
M

Matt Ervin

Hi All,



I have a fairly long delay (sometimes a couple minutes) occurring the first
time TCP/IP related network utilities are accessed. I first noticed this
when my application appeared to take a long time to startup. At first I
thought it was XPe not launching it, but after changing the shell to cmd.exe
I discovered that the shell application is launched by the kernel without
delay. In the command prompt I typed "ipconfig /all" to see what the DHCP
server assigned and that's when I noticed the long delay. (It only happens
once - the first time I try it.) I think this explains the delay with my
application because during it's initialization it calls WSAStartup() and I
assume that's where it hangs for a while (although I haven't verified this.)



In my embedded image, the Windows Firewall component is included and its
"Windows Firewall Settings" field is configured as "Off". The "DHCP Client
Service" component is also included. After the long delay, networking works
normally and I'm able to remotely debug my application using Microsoft
Visual C++ and msvcmon. I can also ping out from the embedded machine
without problems.



Question 1: Does anyone know what might be causing this delay and/or how I
can eliminate it?

Question 2: Does anyone know how to disable DHCP and/or configure a static
IP?



Thanks in advance.



Matt
 
To setup static TCP/IP, you should add the NetShell component (visibility
needs to be 100). NETSH can be used to set static TCP/IP.


Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
 
Back
Top