RFCOMM_CreateConnection() function
* Function RFCOMM_CreateConnection * Description RFCOMM_CreateConnection function is used from the application * to establish serial port connection to the peer device, * or allow RFCOMM to accept a connection from the peer * application. * Parameters: scn - Service Channel Number as registered with * the SDP (server) or obtained using SDP from * the peer device (client). * is_server - TRUE if requesting application is a server * mtu - Maximum frame size the application can accept * bd_addr - BD_ADDR of the peer (client) * mask - specifies events to be enabled. A value * of zero disables all events. * p_handle - OUT pointer to the handle. * p_mgmt_cb - pointer to callback function to receive * connection up/down events. * Notes: * Server can call this function with the same scn parameter multiple times if * it is ready to accept multiple simulteneous connections. * DLCI for the connection is (scn * 2 + 1) if client originates connection on * existing none initiator multiplexer channel. Otherwise it is (scn * 2). * For the server DLCI can be changed later if client will be calling it using * (scn * 2 + 1) dlci.