beautypg.com

Philips Bluetooth QuickStart Kit User Manual

Page 44

background image

Bluetooth QuickStart Kit Version 1.0 - User’s Guide

Page 44

Copyright 2004-2005 © Embedded Artists AB

B.3 Web Server API

B.3.1 m_get_request_method

The macro

m_get_request_method

is defined as:

#define m_get_request_method( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Get the request method (e.g. "GET") for a specific connection and request.

Parameters:

[in] pConn - control block for the connection.

Returns:

The request method or NULL if none available.

B.3.2 m_get_server_protocol

The macro

m_get_server_protocol

is defined as:

#define m_get_server_protocol( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Get the server protocol (e.g. "HTTP/1.0") used for a specific connection and request.

Parameters:

[in] pConn - control block for the connection.

Returns:

The server protocol or NULL if none available.

B.3.3 m_get_document_uri

The macro

m_get_document_uri

is defined as:

#define m_get_document_uri( pConn ) func( pConn )

Where

func

is a function with the following prototype:

tU8* func( tConnect* pConn )

Get the document URI (e.g. "/page.html") for a specific connection and request.

Parameters:

[in] pConn - control block for the connection.

Returns:

The document URI or NULL if none available.

B.3.4 m_get_query_string

The macro

m_get_query_string

is defined as: