Service Discovery Protocol (SDP)

Implementation

Unimplemented features

Continuation States

Continuation states were not implemented because they were not considered important, especially when there were other problems arising with implementing more basic features. A method for adding the functionality could be to have a buffer on the server to store the whole result, to be sent out when the client requests it after receiving a partial result. The length and boundary of each partial result is up to the server - as long as the maximum byte count indicated by the client is observed.

Large Variable-sized Data Values

The variable data sizes that use 2 and 4 bytes to specify the length of the element (up to 216-1 and 232-1 bytes respectively) have not been implemented because VCC does not easily support dynamic memory allocation. SdpData allowed variable element lengths up to 255 bytes by having a static allocation of 255 bytes in its structure (see the header file db.h).


Next: Testing