IPWorks WebSockets 2020 C++ Edition

Questions / Feedback?

Listening Property

If True, the class accepts incoming connections on LocalPort.

Syntax

ANSI (Cross Platform)
int GetListening();
int SetListening(int bListening); Unicode (Windows) BOOL GetListening();
INT SetListening(BOOL bListening);
@property (nonatomic,readwrite,assign,getter=listening,setter=setListening:) BOOL listening;
- (BOOL)listening;
- (void)setListening:(BOOL)newListening;
#define PID_WEBSOCKETSERVER_LISTENING 20

IPWORKSWS_EXTERNAL void* IPWORKSWS_CALL IPWorksWS_WebSocketServer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSWS_EXTERNAL int IPWORKSWS_CALL IPWorksWS_WebSocketServer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

FALSE

Remarks

Use this property to make the class 'listen' (accept connections) on the port specified by the LocalPort property. Setting this property to False will make the class stop listening (please note that this does not close any existing connections).

This property is not available at design time.

Data Type

Boolean

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