wclCustomObexServerAccept Method |
Accepts the client's connection request.
Namespace: wclCommunicationAssembly: wclCommunication (in wclCommunication.dll) Version: 7.9.6.0 (7.9.6.0)
Syntaxpublic int Accept(
string Description,
ushort PacketSize = 65535
)
Public Function Accept (
Description As String,
Optional PacketSize As UShort = 65535
) As Integer
public:
int Accept(
String^ Description,
unsigned short PacketSize = 65535
)
Parameters
- Description String
- The service's description.
- PacketSize UInt16 (Optional)
- The maximum OBEX packet size. The minimum
allowed value is 0x00FF. The default value is 0xFFFF.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
Remarks An application calls this method from DoConnect
method or from OnConnect event handler to accept the connection
request.
If the method completed with success the ConnectionId
property has valid connection ID that can be used to unique identify
the connected client.
If method failed the connection request has been rejected by
the implementation.
See Also