Serial Framework C++ Edition

◆ DoConnect()

virtual void DoConnect ( const GUID &  Target,
const GUID &  Who,
const tstring &  Description 
)
protectedvirtual

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

Parameters
TargetThe requested target service/server ID.
WhoThe client's ID.
DescriptionThe 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 must 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.

Reimplemented in CwclObexOppServer.