IrDA Framework
ContentsIndexHome
PreviousUpNext
CwclCustomObexServer::DoConnect Method

The method called when a remote client opens OBEX session (connects).

Syntax
C++
virtual void DoConnect(GUID Target, GUID Who, tstring Description);
Parameters 
Description 
GUID Target 
The requested target service/server ID.  
GUID Who 
The client's ID.  
tstring Description 
The connect operation's or client's description.  

A derived class must override this method to accept or reject connection. The default implementation rejects any connection requests.  

To accept connection an implementation must call the Accept method. To reject the connection request an implementation myst call the Reject method.  

In case the Target and/or Who values were not provided by a client the values of these parameters are GUID_NULL. If the Description was not provided by a client the value of this parameter is an empty string.  

 

Copyright (c) 2006-2019. All rights reserved.