11.01.2015 Views

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.2.3.171 Wait<br />

The Wait element is an optional child element of the Sync element in Sync command requests that<br />

specifies the number of minutes that the server SHOULD delay a response.<br />

All elements referenced in this section are defined in the AirSync namespace.<br />

<strong>Command</strong><br />

request/response<br />

Parent<br />

elements<br />

Child<br />

elements<br />

Data type<br />

Number<br />

allowed<br />

Sync command request<br />

(section 2.2.2.19.1)<br />

Sync (section<br />

2.2.3.155)<br />

None<br />

integer ([<strong>MS</strong>-<br />

ASDTYPE] section<br />

2.5)<br />

0...1<br />

(optional)<br />

The result of including the Wait element as the child element of the Wait element in a Sync<br />

command request is undefined. The server MAY return a protocol status error in response to such a<br />

command request.<br />

Valid values for the Wait element are 1 through 59. When the client requests a wait interval that is<br />

outside the acceptable range, the server will send a response that includes a Status element<br />

(section 2.2.3.152.16) value of 14 and a Limit element (section 2.2.3.82).<br />

Either the Wait element or the HeartbeatInterval element (section 2.2.3.75.2) can be included in<br />

a Sync command request, but not both. If both elements are included, the server response will<br />

contain a Status element value of 4.<br />

When the Wait element is used in a Sync request, it indicates to the server that a response<br />

SHOULD be delayed either until the wait interval, which is indicated by the contents of the Wait<br />

element, elapses or until any of the collections that are included in the request have changed.<br />

It is at the discretion of the client to send the Wait element; the server is only guaranteed to<br />

respond immediately when the Wait element is not present. The client typically wants a server<br />

response immediately in the following cases:<br />

•The client adds new items by using the Add element (section 2.2.3.7.2). In this case, an<br />

immediate response is required because the client requires the server-provided item ID to track<br />

changes to those new items.<br />

•The client sends the server a Change element (section 2.2.3.23) that contains an important<br />

update. In this case, a delayed response increases the possibility that the client has to resend the<br />

change because of a lost connection.<br />

Although the server is only guaranteed to respond immediately when the Wait element and the<br />

HeartbeatInterval element are not present, the server SHOULD always respond immediately to a<br />

Sync request that includes an Add element or a Change element, unless the addition or change<br />

involves only flags.<br />

A flagging change or a move out of (and not into) a folder which is being synced SHOULD NOT<br />

cause the request to finish early.<br />

2.2.3.172 WindowSize<br />

The WindowSize element is an optional child element of the Collection element and the Sync<br />

element in Sync command requests that specifies a maximum number of changed items in a<br />

collection or a request that SHOULD be included in the synchronization response.<br />

[<strong>MS</strong>-<strong>ASCMD</strong>] — v20110315<br />

<strong>ActiveSync</strong> <strong>Command</strong> <strong>Reference</strong> <strong>Protocol</strong> <strong>Specification</strong><br />

Copyright © 2011 Microsoft Corporation.<br />

Release: Tuesday, March 15, 2011<br />

256 / 369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!