user_data Property

The UserData property holds connection specific user specified data.

Syntax

def get_user_data(connection_id: int) -> bytes: ...
def set_user_data(connection_id: int, value: bytes) -> None: ...

Default Value

""

Remarks

The userdata property holds connection specific user specified data.

User specified data may be set or retrieved at any point while the connection is valid. This provides a simple way to associate arbitrary data with a specific connection.

The connection_id parameter specifies the index of the item in the array. The size of the array is controlled by the connection_count property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]