11-06-2009 11:21 AM
I'm using datasockets to read and write to shared variables hosted on a second PC. In one of the examples that I found, the URL has "?sync=true" at the end of it. I cannot find this documented anywhere. Does anyone know what this does to the connection or when it should be used?
TIA,
DaveT
Solved! Go to Solution.
11-06-2009 12:04 PM
A cut-n-paste from here says...
ms timeout specifies the number of milliseconds the function waits for the pending operation to complete. The default is 0, which means the function does not wait for the operation to complete. Use a timeout value of –1 to make the function wait until the operation completes. Currently, only the dstp, opc, and file protocols support nonzero timeout values for this function. You must enable synchronous notifications to use a nonzero timeout value with the psp protocol. When you enable synchronous notifications, the function waits until the operation completes or the timeout expires. You must append ?sync=”true” to the end of the psp URL to enable synchronous notifications and allow nonzero timeout values for write operations. Enabling synchronous notifications can cause slower performance, particularly on RT targets.
11-06-2009 12:07 PM
Thanks, Ben. Not sure how I missed it...
DaveT