UserDomain Property

Gets or sets the domain value used for Jabber IDs.

Syntax

ANSI (Cross Platform)
char* GetUserDomain();
int SetUserDomain(const char* lpszUserDomain); Unicode (Windows) LPWSTR GetUserDomain();
INT SetUserDomain(LPCWSTR lpszUserDomain);
@property (nonatomic,readwrite,assign,getter=userDomain,setter=setUserDomain:) NSString* userDomain;
- (NSString*)userDomain;
- (void)setUserDomain:(NSString*)newUserDomain;
#define PID_XMPP_USERDOMAIN 43

IPWORKSMQ_EXTERNAL void* IPWORKSMQ_CALL IPWorksMQ_XMPP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSMQ_EXTERNAL int IPWORKSMQ_CALL IPWorksMQ_XMPP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

A Jabber ID (JID) is a unique identifier of the format "User@Domain/Resource". user@domain denotes the account by username and domain. The Resource is given during the login process to distinguish individual connections under the same account. If the IMServer contains multiple domains, this property setting allows the user to specify the domain under which to login.

If Domain is empty, the value in IMServer is used by default when creating the client's JID.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 C++ Edition - Version 20.0 [Build 8155]