 | wclCustomObexServerAccept Method |
Accepts a client's connection request.
Namespace: wclCommunicationAssembly: wclCommunication (in wclCommunication.dll) Version: 8.0.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
-
A service's description.
- PacketSize UInt16 (Optional)
-
The maximum OBEX packet size. The minimum allowed value is 255.
The default value is 65535.
Return Value
Int32
If the method completed with success 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