Page 1 of 1

StartTCPUpdate

Posted: Wed Feb 04, 2009 7:50 am
by jmcpherson96
I am trying implement autoupdate mechanism via TCP.

I am trying use the StartTcpUpdate function with their TCP PC tool. Anybody have a code example of this.

Thanks

Re: StartTCPUpdate

Posted: Wed Feb 04, 2009 11:42 am
by lgitlitz
The TCP Update is somewhat simple to use. Just replace the EnableAutoUpdate(); function with StartTcpUpdate( int priority) function. For a priority you need to make sure that the task gets some CPU time so it can process any incoming data. It will always block if there is no incoming data on the update port so it is OK, and probably better, to make this task higher priority (lower number) then the user tasks. Try StartTcpUpdate( MAIN_PRIO - 1 );