Delay related to networking?

Posted: 09-14-2006, 12:38 AM
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


Reply With Quote

Responses to "Delay related to networking?"

Sean Liming \(eMVP\)
Guest
Posts: n/a
 
Re: Delay related to networking?
Posted: 09-14-2006, 03:45 PM

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


"Matt Ervin" <matt.ervin@u1gaming.com> wrote in message
news:OAf5X241GHA.1040@TK2MSFTNGP06.phx.gbl...
> 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
>
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE7 Related Sammy Windows Vista 5 03-16-2006 01:23 PM
Networking delay Kyle Powning Windows XP Network & Web 0 09-24-2003 02:36 AM
pop ups? not related to virus... dl Windows XP Security & Administration 2 08-13-2003 05:09 AM
2 problems, might be related carine Windows XP Device Drivers 0 08-04-2003 01:43 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90