winrt-Windows.Networking.Sockets 2.2.0__cp313-cp313-win_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,806 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.applicationmodel.background as windows_applicationmodel_background
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+ import winrt.windows.networking as windows_networking
16
+ import winrt.windows.networking.connectivity as windows_networking_connectivity
17
+ import winrt.windows.security.credentials as windows_security_credentials
18
+ import winrt.windows.security.cryptography.certificates as windows_security_cryptography_certificates
19
+ import winrt.windows.storage.streams as windows_storage_streams
20
+ import winrt.windows.web as windows_web
21
+
22
+ from winrt.windows.networking.sockets import ControlChannelTriggerResetReason, ControlChannelTriggerResourceType, ControlChannelTriggerStatus, MessageWebSocketReceiveMode, SocketActivityConnectedStandbyAction, SocketActivityKind, SocketActivityTriggerReason, SocketErrorStatus, SocketMessageType, SocketProtectionLevel, SocketQualityOfService, SocketSslErrorSeverity
23
+
24
+ Self = typing.TypeVar('Self')
25
+
26
+ @typing.final
27
+ class BandwidthStatistics:
28
+ outbound_bits_per_second: winrt.system.UInt64
29
+ inbound_bits_per_second: winrt.system.UInt64
30
+ outbound_bits_per_second_instability: winrt.system.UInt64
31
+ inbound_bits_per_second_instability: winrt.system.UInt64
32
+ outbound_bandwidth_peaked: bool
33
+ inbound_bandwidth_peaked: bool
34
+ def __init__(self, outbound_bits_per_second: winrt.system.UInt64, inbound_bits_per_second: winrt.system.UInt64, outbound_bits_per_second_instability: winrt.system.UInt64, inbound_bits_per_second_instability: winrt.system.UInt64, outbound_bandwidth_peaked: bool, inbound_bandwidth_peaked: bool) -> None: ...
35
+
36
+ @typing.final
37
+ class RoundTripTimeStatistics:
38
+ variance: winrt.system.UInt32
39
+ max: winrt.system.UInt32
40
+ min: winrt.system.UInt32
41
+ sum: winrt.system.UInt32
42
+ def __init__(self, variance: winrt.system.UInt32, max: winrt.system.UInt32, min: winrt.system.UInt32, sum: winrt.system.UInt32) -> None: ...
43
+
44
+ @typing.final
45
+ class ControlChannelTrigger(winrt.system.Object):
46
+ def __enter__(self: Self) -> Self: ...
47
+ def __exit__(self, *args) -> None: ...
48
+ @staticmethod
49
+ def _from(obj: winrt.system.Object, /) -> ControlChannelTrigger: ...
50
+ @typing.overload
51
+ def __new__(cls: typing.Type[ControlChannelTrigger], channel_id: str, server_keep_alive_interval_in_minutes: winrt.system.UInt32) -> ControlChannelTrigger: ...
52
+ @typing.overload
53
+ def __new__(cls: typing.Type[ControlChannelTrigger], channel_id: str, server_keep_alive_interval_in_minutes: winrt.system.UInt32, resource_request_type: ControlChannelTriggerResourceType) -> ControlChannelTrigger: ...
54
+ def close(self) -> None: ...
55
+ def decrease_network_keep_alive_interval(self) -> None: ...
56
+ def flush_transport(self) -> None: ...
57
+ def using_transport(self, transport: typing.Optional[winrt.system.Object], /) -> None: ...
58
+ def wait_for_push_enabled(self) -> ControlChannelTriggerStatus: ...
59
+ @_property
60
+ def server_keep_alive_interval_in_minutes(self) -> winrt.system.UInt32: ...
61
+ @server_keep_alive_interval_in_minutes.setter
62
+ def server_keep_alive_interval_in_minutes(self, value: winrt.system.UInt32) -> None: ...
63
+ @_property
64
+ def control_channel_trigger_id(self) -> str: ...
65
+ @_property
66
+ def current_keep_alive_interval_in_minutes(self) -> winrt.system.UInt32: ...
67
+ @_property
68
+ def keep_alive_trigger(self) -> typing.Optional[windows_applicationmodel_background.IBackgroundTrigger]: ...
69
+ @_property
70
+ def push_notification_trigger(self) -> typing.Optional[windows_applicationmodel_background.IBackgroundTrigger]: ...
71
+ @_property
72
+ def transport_object(self) -> typing.Optional[winrt.system.Object]: ...
73
+ @_property
74
+ def is_wake_from_low_power_supported(self) -> bool: ...
75
+
76
+ @typing.final
77
+ class DatagramSocket_Static(type):
78
+ @typing.overload
79
+ def get_endpoint_pairs_async(cls, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_networking.EndpointPair]]: ...
80
+ @typing.overload
81
+ def get_endpoint_pairs_async(cls, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, sort_options: windows_networking.HostNameSortOptions, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_networking.EndpointPair]]: ...
82
+
83
+ @typing.final
84
+ class DatagramSocket(winrt.system.Object, metaclass=DatagramSocket_Static):
85
+ def __enter__(self: Self) -> Self: ...
86
+ def __exit__(self, *args) -> None: ...
87
+ @staticmethod
88
+ def _from(obj: winrt.system.Object, /) -> DatagramSocket: ...
89
+ def __new__(cls: typing.Type[DatagramSocket]) -> DatagramSocket: ...
90
+ def bind_endpoint_async(self, local_host_name: typing.Optional[windows_networking.HostName], local_service_name: str, /) -> windows_foundation.IAsyncAction: ...
91
+ @typing.overload
92
+ def bind_service_name_async(self, local_service_name: str, /) -> windows_foundation.IAsyncAction: ...
93
+ @typing.overload
94
+ def bind_service_name_async(self, local_service_name: str, adapter: typing.Optional[windows_networking_connectivity.NetworkAdapter], /) -> windows_foundation.IAsyncAction: ...
95
+ def cancel_i_o_async(self) -> windows_foundation.IAsyncAction: ...
96
+ def close(self) -> None: ...
97
+ @typing.overload
98
+ def connect_async(self, endpoint_pair: typing.Optional[windows_networking.EndpointPair], /) -> windows_foundation.IAsyncAction: ...
99
+ @typing.overload
100
+ def connect_async(self, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, /) -> windows_foundation.IAsyncAction: ...
101
+ @typing.overload
102
+ def enable_transfer_ownership(self, task_id: _uuid.UUID, /) -> None: ...
103
+ @typing.overload
104
+ def enable_transfer_ownership(self, task_id: _uuid.UUID, connected_standby_action: SocketActivityConnectedStandbyAction, /) -> None: ...
105
+ @typing.overload
106
+ def get_output_stream_async(self, endpoint_pair: typing.Optional[windows_networking.EndpointPair], /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IOutputStream]: ...
107
+ @typing.overload
108
+ def get_output_stream_async(self, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IOutputStream]: ...
109
+ def join_multicast_group(self, host: typing.Optional[windows_networking.HostName], /) -> None: ...
110
+ @typing.overload
111
+ def transfer_ownership(self, socket_id: str, /) -> None: ...
112
+ @typing.overload
113
+ def transfer_ownership(self, socket_id: str, data: typing.Optional[SocketActivityContext], /) -> None: ...
114
+ @typing.overload
115
+ def transfer_ownership(self, socket_id: str, data: typing.Optional[SocketActivityContext], keep_alive_time: datetime.timedelta, /) -> None: ...
116
+ def add_message_received(self, event_handler: windows_foundation.TypedEventHandler[DatagramSocket, DatagramSocketMessageReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
117
+ def remove_message_received(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
118
+ @_property
119
+ def control(self) -> typing.Optional[DatagramSocketControl]: ...
120
+ @_property
121
+ def information(self) -> typing.Optional[DatagramSocketInformation]: ...
122
+ @_property
123
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
124
+
125
+ @typing.final
126
+ class DatagramSocketControl(winrt.system.Object):
127
+ @staticmethod
128
+ def _from(obj: winrt.system.Object, /) -> DatagramSocketControl: ...
129
+ @_property
130
+ def quality_of_service(self) -> SocketQualityOfService: ...
131
+ @quality_of_service.setter
132
+ def quality_of_service(self, value: SocketQualityOfService) -> None: ...
133
+ @_property
134
+ def outbound_unicast_hop_limit(self) -> winrt.system.UInt8: ...
135
+ @outbound_unicast_hop_limit.setter
136
+ def outbound_unicast_hop_limit(self, value: winrt.system.UInt8) -> None: ...
137
+ @_property
138
+ def inbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
139
+ @inbound_buffer_size_in_bytes.setter
140
+ def inbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
141
+ @_property
142
+ def dont_fragment(self) -> bool: ...
143
+ @dont_fragment.setter
144
+ def dont_fragment(self, value: bool) -> None: ...
145
+ @_property
146
+ def multicast_only(self) -> bool: ...
147
+ @multicast_only.setter
148
+ def multicast_only(self, value: bool) -> None: ...
149
+
150
+ @typing.final
151
+ class DatagramSocketInformation(winrt.system.Object):
152
+ @staticmethod
153
+ def _from(obj: winrt.system.Object, /) -> DatagramSocketInformation: ...
154
+ @_property
155
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
156
+ @_property
157
+ def local_port(self) -> str: ...
158
+ @_property
159
+ def remote_address(self) -> typing.Optional[windows_networking.HostName]: ...
160
+ @_property
161
+ def remote_port(self) -> str: ...
162
+
163
+ @typing.final
164
+ class DatagramSocketMessageReceivedEventArgs(winrt.system.Object):
165
+ @staticmethod
166
+ def _from(obj: winrt.system.Object, /) -> DatagramSocketMessageReceivedEventArgs: ...
167
+ def get_data_reader(self) -> typing.Optional[windows_storage_streams.DataReader]: ...
168
+ def get_data_stream(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
169
+ @_property
170
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
171
+ @_property
172
+ def remote_address(self) -> typing.Optional[windows_networking.HostName]: ...
173
+ @_property
174
+ def remote_port(self) -> str: ...
175
+
176
+ @typing.final
177
+ class MessageWebSocket(winrt.system.Object):
178
+ def __enter__(self: Self) -> Self: ...
179
+ def __exit__(self, *args) -> None: ...
180
+ @staticmethod
181
+ def _from(obj: winrt.system.Object, /) -> MessageWebSocket: ...
182
+ def __new__(cls: typing.Type[MessageWebSocket]) -> MessageWebSocket: ...
183
+ @typing.overload
184
+ def close(self) -> None: ...
185
+ @typing.overload
186
+ def close(self, code: winrt.system.UInt16, reason: str, /) -> None: ...
187
+ def connect_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncAction: ...
188
+ def send_final_frame_async(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
189
+ def send_nonfinal_frame_async(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
190
+ def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
191
+ def add_message_received(self, event_handler: windows_foundation.TypedEventHandler[MessageWebSocket, MessageWebSocketMessageReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
192
+ def remove_message_received(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
193
+ def add_closed(self, event_handler: windows_foundation.TypedEventHandler[IWebSocket, WebSocketClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
194
+ def remove_closed(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
195
+ def add_server_custom_validation_requested(self, event_handler: windows_foundation.TypedEventHandler[MessageWebSocket, WebSocketServerCustomValidationRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
196
+ def remove_server_custom_validation_requested(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
197
+ @_property
198
+ def control(self) -> typing.Optional[MessageWebSocketControl]: ...
199
+ @_property
200
+ def information(self) -> typing.Optional[MessageWebSocketInformation]: ...
201
+ @_property
202
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
203
+
204
+ @typing.final
205
+ class MessageWebSocketControl(winrt.system.Object):
206
+ @staticmethod
207
+ def _from(obj: winrt.system.Object, /) -> MessageWebSocketControl: ...
208
+ @_property
209
+ def message_type(self) -> SocketMessageType: ...
210
+ @message_type.setter
211
+ def message_type(self, value: SocketMessageType) -> None: ...
212
+ @_property
213
+ def max_message_size(self) -> winrt.system.UInt32: ...
214
+ @max_message_size.setter
215
+ def max_message_size(self, value: winrt.system.UInt32) -> None: ...
216
+ @_property
217
+ def receive_mode(self) -> MessageWebSocketReceiveMode: ...
218
+ @receive_mode.setter
219
+ def receive_mode(self, value: MessageWebSocketReceiveMode) -> None: ...
220
+ @_property
221
+ def desired_unsolicited_pong_interval(self) -> datetime.timedelta: ...
222
+ @desired_unsolicited_pong_interval.setter
223
+ def desired_unsolicited_pong_interval(self, value: datetime.timedelta) -> None: ...
224
+ @_property
225
+ def client_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
226
+ @client_certificate.setter
227
+ def client_certificate(self, value: typing.Optional[windows_security_cryptography_certificates.Certificate]) -> None: ...
228
+ @_property
229
+ def actual_unsolicited_pong_interval(self) -> datetime.timedelta: ...
230
+ @_property
231
+ def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
232
+ @server_credential.setter
233
+ def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
234
+ @_property
235
+ def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
236
+ @proxy_credential.setter
237
+ def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
238
+ @_property
239
+ def outbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
240
+ @outbound_buffer_size_in_bytes.setter
241
+ def outbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
242
+ @_property
243
+ def supported_protocols(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
244
+ @_property
245
+ def ignorable_server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVector[windows_security_cryptography_certificates.ChainValidationResult]]: ...
246
+
247
+ @typing.final
248
+ class MessageWebSocketInformation(winrt.system.Object):
249
+ @staticmethod
250
+ def _from(obj: winrt.system.Object, /) -> MessageWebSocketInformation: ...
251
+ @_property
252
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
253
+ @_property
254
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
255
+ @_property
256
+ def protocol(self) -> str: ...
257
+ @_property
258
+ def server_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
259
+ @_property
260
+ def server_certificate_error_severity(self) -> SocketSslErrorSeverity: ...
261
+ @_property
262
+ def server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.ChainValidationResult]]: ...
263
+ @_property
264
+ def server_intermediate_certificates(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.Certificate]]: ...
265
+
266
+ @typing.final
267
+ class MessageWebSocketMessageReceivedEventArgs(winrt.system.Object):
268
+ @staticmethod
269
+ def _from(obj: winrt.system.Object, /) -> MessageWebSocketMessageReceivedEventArgs: ...
270
+ def get_data_reader(self) -> typing.Optional[windows_storage_streams.DataReader]: ...
271
+ def get_data_stream(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
272
+ @_property
273
+ def message_type(self) -> SocketMessageType: ...
274
+ @_property
275
+ def is_message_complete(self) -> bool: ...
276
+
277
+ @typing.final
278
+ class ServerMessageWebSocket(winrt.system.Object):
279
+ def __enter__(self: Self) -> Self: ...
280
+ def __exit__(self, *args) -> None: ...
281
+ @staticmethod
282
+ def _from(obj: winrt.system.Object, /) -> ServerMessageWebSocket: ...
283
+ @typing.overload
284
+ def close(self) -> None: ...
285
+ @typing.overload
286
+ def close(self, code: winrt.system.UInt16, reason: str, /) -> None: ...
287
+ def add_closed(self, value: windows_foundation.TypedEventHandler[ServerMessageWebSocket, WebSocketClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
288
+ def remove_closed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
289
+ def add_message_received(self, value: windows_foundation.TypedEventHandler[ServerMessageWebSocket, MessageWebSocketMessageReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
290
+ def remove_message_received(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
291
+ @_property
292
+ def control(self) -> typing.Optional[ServerMessageWebSocketControl]: ...
293
+ @_property
294
+ def information(self) -> typing.Optional[ServerMessageWebSocketInformation]: ...
295
+ @_property
296
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
297
+
298
+ @typing.final
299
+ class ServerMessageWebSocketControl(winrt.system.Object):
300
+ @staticmethod
301
+ def _from(obj: winrt.system.Object, /) -> ServerMessageWebSocketControl: ...
302
+ @_property
303
+ def message_type(self) -> SocketMessageType: ...
304
+ @message_type.setter
305
+ def message_type(self, value: SocketMessageType) -> None: ...
306
+
307
+ @typing.final
308
+ class ServerMessageWebSocketInformation(winrt.system.Object):
309
+ @staticmethod
310
+ def _from(obj: winrt.system.Object, /) -> ServerMessageWebSocketInformation: ...
311
+ @_property
312
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
313
+ @_property
314
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
315
+ @_property
316
+ def protocol(self) -> str: ...
317
+
318
+ @typing.final
319
+ class ServerStreamWebSocket(winrt.system.Object):
320
+ def __enter__(self: Self) -> Self: ...
321
+ def __exit__(self, *args) -> None: ...
322
+ @staticmethod
323
+ def _from(obj: winrt.system.Object, /) -> ServerStreamWebSocket: ...
324
+ @typing.overload
325
+ def close(self) -> None: ...
326
+ @typing.overload
327
+ def close(self, code: winrt.system.UInt16, reason: str, /) -> None: ...
328
+ def add_closed(self, value: windows_foundation.TypedEventHandler[ServerStreamWebSocket, WebSocketClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
329
+ def remove_closed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
330
+ @_property
331
+ def information(self) -> typing.Optional[ServerStreamWebSocketInformation]: ...
332
+ @_property
333
+ def input_stream(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
334
+ @_property
335
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
336
+
337
+ @typing.final
338
+ class ServerStreamWebSocketInformation(winrt.system.Object):
339
+ @staticmethod
340
+ def _from(obj: winrt.system.Object, /) -> ServerStreamWebSocketInformation: ...
341
+ @_property
342
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
343
+ @_property
344
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
345
+ @_property
346
+ def protocol(self) -> str: ...
347
+
348
+ @typing.final
349
+ class SocketActivityContext(winrt.system.Object):
350
+ @staticmethod
351
+ def _from(obj: winrt.system.Object, /) -> SocketActivityContext: ...
352
+ def __new__(cls: typing.Type[SocketActivityContext], data: typing.Optional[windows_storage_streams.IBuffer]) -> SocketActivityContext: ...
353
+ @_property
354
+ def data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
355
+
356
+ @typing.final
357
+ class SocketActivityInformation_Static(type):
358
+ @_property
359
+ def all_sockets(cls) -> typing.Optional[windows_foundation_collections.IMapView[str, SocketActivityInformation]]: ...
360
+
361
+ @typing.final
362
+ class SocketActivityInformation(winrt.system.Object, metaclass=SocketActivityInformation_Static):
363
+ @staticmethod
364
+ def _from(obj: winrt.system.Object, /) -> SocketActivityInformation: ...
365
+ @_property
366
+ def context(self) -> typing.Optional[SocketActivityContext]: ...
367
+ @_property
368
+ def datagram_socket(self) -> typing.Optional[DatagramSocket]: ...
369
+ @_property
370
+ def id(self) -> str: ...
371
+ @_property
372
+ def socket_kind(self) -> SocketActivityKind: ...
373
+ @_property
374
+ def stream_socket(self) -> typing.Optional[StreamSocket]: ...
375
+ @_property
376
+ def stream_socket_listener(self) -> typing.Optional[StreamSocketListener]: ...
377
+ @_property
378
+ def task_id(self) -> _uuid.UUID: ...
379
+
380
+ @typing.final
381
+ class SocketActivityTriggerDetails(winrt.system.Object):
382
+ @staticmethod
383
+ def _from(obj: winrt.system.Object, /) -> SocketActivityTriggerDetails: ...
384
+ @_property
385
+ def reason(self) -> SocketActivityTriggerReason: ...
386
+ @_property
387
+ def socket_information(self) -> typing.Optional[SocketActivityInformation]: ...
388
+
389
+ @typing.final
390
+ class SocketError_Static(type):
391
+ def get_status(cls, hresult: winrt.system.Int32, /) -> SocketErrorStatus: ...
392
+
393
+ @typing.final
394
+ class SocketError(winrt.system.Object, metaclass=SocketError_Static):
395
+ pass
396
+
397
+ @typing.final
398
+ class StreamSocket_Static(type):
399
+ @typing.overload
400
+ def get_endpoint_pairs_async(cls, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_networking.EndpointPair]]: ...
401
+ @typing.overload
402
+ def get_endpoint_pairs_async(cls, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, sort_options: windows_networking.HostNameSortOptions, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[windows_networking.EndpointPair]]: ...
403
+
404
+ @typing.final
405
+ class StreamSocket(winrt.system.Object, metaclass=StreamSocket_Static):
406
+ def __enter__(self: Self) -> Self: ...
407
+ def __exit__(self, *args) -> None: ...
408
+ @staticmethod
409
+ def _from(obj: winrt.system.Object, /) -> StreamSocket: ...
410
+ def __new__(cls: typing.Type[StreamSocket]) -> StreamSocket: ...
411
+ def cancel_i_o_async(self) -> windows_foundation.IAsyncAction: ...
412
+ def close(self) -> None: ...
413
+ @typing.overload
414
+ def connect_async(self, endpoint_pair: typing.Optional[windows_networking.EndpointPair], /) -> windows_foundation.IAsyncAction: ...
415
+ @typing.overload
416
+ def connect_async(self, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, /) -> windows_foundation.IAsyncAction: ...
417
+ @typing.overload
418
+ def connect_async(self, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, protection_level: SocketProtectionLevel, /) -> windows_foundation.IAsyncAction: ...
419
+ @typing.overload
420
+ def connect_async(self, remote_host_name: typing.Optional[windows_networking.HostName], remote_service_name: str, protection_level: SocketProtectionLevel, adapter: typing.Optional[windows_networking_connectivity.NetworkAdapter], /) -> windows_foundation.IAsyncAction: ...
421
+ @typing.overload
422
+ def enable_transfer_ownership(self, task_id: _uuid.UUID, /) -> None: ...
423
+ @typing.overload
424
+ def enable_transfer_ownership(self, task_id: _uuid.UUID, connected_standby_action: SocketActivityConnectedStandbyAction, /) -> None: ...
425
+ @typing.overload
426
+ def transfer_ownership(self, socket_id: str, /) -> None: ...
427
+ @typing.overload
428
+ def transfer_ownership(self, socket_id: str, data: typing.Optional[SocketActivityContext], /) -> None: ...
429
+ @typing.overload
430
+ def transfer_ownership(self, socket_id: str, data: typing.Optional[SocketActivityContext], keep_alive_time: datetime.timedelta, /) -> None: ...
431
+ def upgrade_to_ssl_async(self, protection_level: SocketProtectionLevel, validation_host_name: typing.Optional[windows_networking.HostName], /) -> windows_foundation.IAsyncAction: ...
432
+ @_property
433
+ def control(self) -> typing.Optional[StreamSocketControl]: ...
434
+ @_property
435
+ def information(self) -> typing.Optional[StreamSocketInformation]: ...
436
+ @_property
437
+ def input_stream(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
438
+ @_property
439
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
440
+
441
+ @typing.final
442
+ class StreamSocketControl(winrt.system.Object):
443
+ @staticmethod
444
+ def _from(obj: winrt.system.Object, /) -> StreamSocketControl: ...
445
+ @_property
446
+ def quality_of_service(self) -> SocketQualityOfService: ...
447
+ @quality_of_service.setter
448
+ def quality_of_service(self, value: SocketQualityOfService) -> None: ...
449
+ @_property
450
+ def outbound_unicast_hop_limit(self) -> winrt.system.UInt8: ...
451
+ @outbound_unicast_hop_limit.setter
452
+ def outbound_unicast_hop_limit(self, value: winrt.system.UInt8) -> None: ...
453
+ @_property
454
+ def outbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
455
+ @outbound_buffer_size_in_bytes.setter
456
+ def outbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
457
+ @_property
458
+ def no_delay(self) -> bool: ...
459
+ @no_delay.setter
460
+ def no_delay(self, value: bool) -> None: ...
461
+ @_property
462
+ def keep_alive(self) -> bool: ...
463
+ @keep_alive.setter
464
+ def keep_alive(self, value: bool) -> None: ...
465
+ @_property
466
+ def ignorable_server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVector[windows_security_cryptography_certificates.ChainValidationResult]]: ...
467
+ @_property
468
+ def serialize_connection_attempts(self) -> bool: ...
469
+ @serialize_connection_attempts.setter
470
+ def serialize_connection_attempts(self, value: bool) -> None: ...
471
+ @_property
472
+ def client_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
473
+ @client_certificate.setter
474
+ def client_certificate(self, value: typing.Optional[windows_security_cryptography_certificates.Certificate]) -> None: ...
475
+ @_property
476
+ def min_protection_level(self) -> SocketProtectionLevel: ...
477
+ @min_protection_level.setter
478
+ def min_protection_level(self, value: SocketProtectionLevel) -> None: ...
479
+
480
+ @typing.final
481
+ class StreamSocketInformation(winrt.system.Object):
482
+ @staticmethod
483
+ def _from(obj: winrt.system.Object, /) -> StreamSocketInformation: ...
484
+ @_property
485
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
486
+ @_property
487
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
488
+ @_property
489
+ def local_port(self) -> str: ...
490
+ @_property
491
+ def protection_level(self) -> SocketProtectionLevel: ...
492
+ @_property
493
+ def remote_address(self) -> typing.Optional[windows_networking.HostName]: ...
494
+ @_property
495
+ def remote_host_name(self) -> typing.Optional[windows_networking.HostName]: ...
496
+ @_property
497
+ def remote_port(self) -> str: ...
498
+ @_property
499
+ def remote_service_name(self) -> str: ...
500
+ @_property
501
+ def round_trip_time_statistics(self) -> RoundTripTimeStatistics: ...
502
+ @_property
503
+ def session_key(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
504
+ @_property
505
+ def server_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
506
+ @_property
507
+ def server_certificate_error_severity(self) -> SocketSslErrorSeverity: ...
508
+ @_property
509
+ def server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.ChainValidationResult]]: ...
510
+ @_property
511
+ def server_intermediate_certificates(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.Certificate]]: ...
512
+
513
+ @typing.final
514
+ class StreamSocketListener(winrt.system.Object):
515
+ def __enter__(self: Self) -> Self: ...
516
+ def __exit__(self, *args) -> None: ...
517
+ @staticmethod
518
+ def _from(obj: winrt.system.Object, /) -> StreamSocketListener: ...
519
+ def __new__(cls: typing.Type[StreamSocketListener]) -> StreamSocketListener: ...
520
+ def bind_endpoint_async(self, local_host_name: typing.Optional[windows_networking.HostName], local_service_name: str, /) -> windows_foundation.IAsyncAction: ...
521
+ @typing.overload
522
+ def bind_service_name_async(self, local_service_name: str, /) -> windows_foundation.IAsyncAction: ...
523
+ @typing.overload
524
+ def bind_service_name_async(self, local_service_name: str, protection_level: SocketProtectionLevel, /) -> windows_foundation.IAsyncAction: ...
525
+ @typing.overload
526
+ def bind_service_name_async(self, local_service_name: str, protection_level: SocketProtectionLevel, adapter: typing.Optional[windows_networking_connectivity.NetworkAdapter], /) -> windows_foundation.IAsyncAction: ...
527
+ def cancel_i_o_async(self) -> windows_foundation.IAsyncAction: ...
528
+ def close(self) -> None: ...
529
+ @typing.overload
530
+ def enable_transfer_ownership(self, task_id: _uuid.UUID, /) -> None: ...
531
+ @typing.overload
532
+ def enable_transfer_ownership(self, task_id: _uuid.UUID, connected_standby_action: SocketActivityConnectedStandbyAction, /) -> None: ...
533
+ @typing.overload
534
+ def transfer_ownership(self, socket_id: str, /) -> None: ...
535
+ @typing.overload
536
+ def transfer_ownership(self, socket_id: str, data: typing.Optional[SocketActivityContext], /) -> None: ...
537
+ def add_connection_received(self, event_handler: windows_foundation.TypedEventHandler[StreamSocketListener, StreamSocketListenerConnectionReceivedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
538
+ def remove_connection_received(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
539
+ @_property
540
+ def control(self) -> typing.Optional[StreamSocketListenerControl]: ...
541
+ @_property
542
+ def information(self) -> typing.Optional[StreamSocketListenerInformation]: ...
543
+
544
+ @typing.final
545
+ class StreamSocketListenerConnectionReceivedEventArgs(winrt.system.Object):
546
+ @staticmethod
547
+ def _from(obj: winrt.system.Object, /) -> StreamSocketListenerConnectionReceivedEventArgs: ...
548
+ @_property
549
+ def socket(self) -> typing.Optional[StreamSocket]: ...
550
+
551
+ @typing.final
552
+ class StreamSocketListenerControl(winrt.system.Object):
553
+ @staticmethod
554
+ def _from(obj: winrt.system.Object, /) -> StreamSocketListenerControl: ...
555
+ @_property
556
+ def quality_of_service(self) -> SocketQualityOfService: ...
557
+ @quality_of_service.setter
558
+ def quality_of_service(self, value: SocketQualityOfService) -> None: ...
559
+ @_property
560
+ def outbound_unicast_hop_limit(self) -> winrt.system.UInt8: ...
561
+ @outbound_unicast_hop_limit.setter
562
+ def outbound_unicast_hop_limit(self, value: winrt.system.UInt8) -> None: ...
563
+ @_property
564
+ def outbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
565
+ @outbound_buffer_size_in_bytes.setter
566
+ def outbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
567
+ @_property
568
+ def no_delay(self) -> bool: ...
569
+ @no_delay.setter
570
+ def no_delay(self, value: bool) -> None: ...
571
+ @_property
572
+ def keep_alive(self) -> bool: ...
573
+ @keep_alive.setter
574
+ def keep_alive(self, value: bool) -> None: ...
575
+
576
+ @typing.final
577
+ class StreamSocketListenerInformation(winrt.system.Object):
578
+ @staticmethod
579
+ def _from(obj: winrt.system.Object, /) -> StreamSocketListenerInformation: ...
580
+ @_property
581
+ def local_port(self) -> str: ...
582
+
583
+ @typing.final
584
+ class StreamWebSocket(winrt.system.Object):
585
+ def __enter__(self: Self) -> Self: ...
586
+ def __exit__(self, *args) -> None: ...
587
+ @staticmethod
588
+ def _from(obj: winrt.system.Object, /) -> StreamWebSocket: ...
589
+ def __new__(cls: typing.Type[StreamWebSocket]) -> StreamWebSocket: ...
590
+ @typing.overload
591
+ def close(self) -> None: ...
592
+ @typing.overload
593
+ def close(self, code: winrt.system.UInt16, reason: str, /) -> None: ...
594
+ def connect_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncAction: ...
595
+ def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
596
+ def add_closed(self, event_handler: windows_foundation.TypedEventHandler[IWebSocket, WebSocketClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
597
+ def remove_closed(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
598
+ def add_server_custom_validation_requested(self, event_handler: windows_foundation.TypedEventHandler[StreamWebSocket, WebSocketServerCustomValidationRequestedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
599
+ def remove_server_custom_validation_requested(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
600
+ @_property
601
+ def control(self) -> typing.Optional[StreamWebSocketControl]: ...
602
+ @_property
603
+ def information(self) -> typing.Optional[StreamWebSocketInformation]: ...
604
+ @_property
605
+ def input_stream(self) -> typing.Optional[windows_storage_streams.IInputStream]: ...
606
+ @_property
607
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
608
+
609
+ @typing.final
610
+ class StreamWebSocketControl(winrt.system.Object):
611
+ @staticmethod
612
+ def _from(obj: winrt.system.Object, /) -> StreamWebSocketControl: ...
613
+ @_property
614
+ def no_delay(self) -> bool: ...
615
+ @no_delay.setter
616
+ def no_delay(self, value: bool) -> None: ...
617
+ @_property
618
+ def desired_unsolicited_pong_interval(self) -> datetime.timedelta: ...
619
+ @desired_unsolicited_pong_interval.setter
620
+ def desired_unsolicited_pong_interval(self, value: datetime.timedelta) -> None: ...
621
+ @_property
622
+ def client_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
623
+ @client_certificate.setter
624
+ def client_certificate(self, value: typing.Optional[windows_security_cryptography_certificates.Certificate]) -> None: ...
625
+ @_property
626
+ def actual_unsolicited_pong_interval(self) -> datetime.timedelta: ...
627
+ @_property
628
+ def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
629
+ @server_credential.setter
630
+ def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
631
+ @_property
632
+ def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
633
+ @proxy_credential.setter
634
+ def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
635
+ @_property
636
+ def outbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
637
+ @outbound_buffer_size_in_bytes.setter
638
+ def outbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
639
+ @_property
640
+ def supported_protocols(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
641
+ @_property
642
+ def ignorable_server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVector[windows_security_cryptography_certificates.ChainValidationResult]]: ...
643
+
644
+ @typing.final
645
+ class StreamWebSocketInformation(winrt.system.Object):
646
+ @staticmethod
647
+ def _from(obj: winrt.system.Object, /) -> StreamWebSocketInformation: ...
648
+ @_property
649
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
650
+ @_property
651
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
652
+ @_property
653
+ def protocol(self) -> str: ...
654
+ @_property
655
+ def server_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
656
+ @_property
657
+ def server_certificate_error_severity(self) -> SocketSslErrorSeverity: ...
658
+ @_property
659
+ def server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.ChainValidationResult]]: ...
660
+ @_property
661
+ def server_intermediate_certificates(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.Certificate]]: ...
662
+
663
+ @typing.final
664
+ class WebSocketClosedEventArgs(winrt.system.Object):
665
+ @staticmethod
666
+ def _from(obj: winrt.system.Object, /) -> WebSocketClosedEventArgs: ...
667
+ @_property
668
+ def code(self) -> winrt.system.UInt16: ...
669
+ @_property
670
+ def reason(self) -> str: ...
671
+
672
+ @typing.final
673
+ class WebSocketError_Static(type):
674
+ def get_status(cls, hresult: winrt.system.Int32, /) -> windows_web.WebErrorStatus: ...
675
+
676
+ @typing.final
677
+ class WebSocketError(winrt.system.Object, metaclass=WebSocketError_Static):
678
+ pass
679
+
680
+ @typing.final
681
+ class WebSocketKeepAlive(winrt.system.Object):
682
+ @staticmethod
683
+ def _from(obj: winrt.system.Object, /) -> WebSocketKeepAlive: ...
684
+ def __new__(cls: typing.Type[WebSocketKeepAlive]) -> WebSocketKeepAlive: ...
685
+ def run(self, task_instance: typing.Optional[windows_applicationmodel_background.IBackgroundTaskInstance], /) -> None: ...
686
+
687
+ @typing.final
688
+ class WebSocketServerCustomValidationRequestedEventArgs(winrt.system.Object):
689
+ @staticmethod
690
+ def _from(obj: winrt.system.Object, /) -> WebSocketServerCustomValidationRequestedEventArgs: ...
691
+ def get_deferral(self) -> typing.Optional[windows_foundation.Deferral]: ...
692
+ def reject(self) -> None: ...
693
+ @_property
694
+ def server_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
695
+ @_property
696
+ def server_certificate_error_severity(self) -> SocketSslErrorSeverity: ...
697
+ @_property
698
+ def server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.ChainValidationResult]]: ...
699
+ @_property
700
+ def server_intermediate_certificates(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.Certificate]]: ...
701
+
702
+ @typing.final
703
+ class IControlChannelTriggerEventDetails(winrt.system.Object):
704
+ @staticmethod
705
+ def _from(obj: winrt.system.Object, /) -> IControlChannelTriggerEventDetails: ...
706
+ @_property
707
+ def control_channel_trigger(self) -> typing.Optional[ControlChannelTrigger]: ...
708
+
709
+ @typing.final
710
+ class IControlChannelTriggerResetEventDetails(winrt.system.Object):
711
+ @staticmethod
712
+ def _from(obj: winrt.system.Object, /) -> IControlChannelTriggerResetEventDetails: ...
713
+ @_property
714
+ def hardware_slot_reset(self) -> bool: ...
715
+ @_property
716
+ def reset_reason(self) -> ControlChannelTriggerResetReason: ...
717
+ @_property
718
+ def software_slot_reset(self) -> bool: ...
719
+
720
+ @typing.final
721
+ class IWebSocket(winrt.system.Object):
722
+ def __enter__(self: Self) -> Self: ...
723
+ def __exit__(self, *args) -> None: ...
724
+ @staticmethod
725
+ def _from(obj: winrt.system.Object, /) -> IWebSocket: ...
726
+ @typing.overload
727
+ def close(self) -> None: ...
728
+ @typing.overload
729
+ def close(self, code: winrt.system.UInt16, reason: str, /) -> None: ...
730
+ def connect_async(self, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncAction: ...
731
+ def set_request_header(self, header_name: str, header_value: str, /) -> None: ...
732
+ def add_closed(self, event_handler: windows_foundation.TypedEventHandler[IWebSocket, WebSocketClosedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
733
+ def remove_closed(self, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
734
+ @_property
735
+ def output_stream(self) -> typing.Optional[windows_storage_streams.IOutputStream]: ...
736
+
737
+ @typing.final
738
+ class IWebSocketControl(winrt.system.Object):
739
+ @staticmethod
740
+ def _from(obj: winrt.system.Object, /) -> IWebSocketControl: ...
741
+ @_property
742
+ def outbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
743
+ @outbound_buffer_size_in_bytes.setter
744
+ def outbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
745
+ @_property
746
+ def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
747
+ @proxy_credential.setter
748
+ def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
749
+ @_property
750
+ def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
751
+ @server_credential.setter
752
+ def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
753
+ @_property
754
+ def supported_protocols(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
755
+
756
+ @typing.final
757
+ class IWebSocketControl2(winrt.system.Object):
758
+ @staticmethod
759
+ def _from(obj: winrt.system.Object, /) -> IWebSocketControl2: ...
760
+ @_property
761
+ def ignorable_server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVector[windows_security_cryptography_certificates.ChainValidationResult]]: ...
762
+ @_property
763
+ def outbound_buffer_size_in_bytes(self) -> winrt.system.UInt32: ...
764
+ @outbound_buffer_size_in_bytes.setter
765
+ def outbound_buffer_size_in_bytes(self, value: winrt.system.UInt32) -> None: ...
766
+ @_property
767
+ def proxy_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
768
+ @proxy_credential.setter
769
+ def proxy_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
770
+ @_property
771
+ def server_credential(self) -> typing.Optional[windows_security_credentials.PasswordCredential]: ...
772
+ @server_credential.setter
773
+ def server_credential(self, value: typing.Optional[windows_security_credentials.PasswordCredential]) -> None: ...
774
+ @_property
775
+ def supported_protocols(self) -> typing.Optional[windows_foundation_collections.IVector[str]]: ...
776
+
777
+ @typing.final
778
+ class IWebSocketInformation(winrt.system.Object):
779
+ @staticmethod
780
+ def _from(obj: winrt.system.Object, /) -> IWebSocketInformation: ...
781
+ @_property
782
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
783
+ @_property
784
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
785
+ @_property
786
+ def protocol(self) -> str: ...
787
+
788
+ @typing.final
789
+ class IWebSocketInformation2(winrt.system.Object):
790
+ @staticmethod
791
+ def _from(obj: winrt.system.Object, /) -> IWebSocketInformation2: ...
792
+ @_property
793
+ def server_certificate(self) -> typing.Optional[windows_security_cryptography_certificates.Certificate]: ...
794
+ @_property
795
+ def server_certificate_error_severity(self) -> SocketSslErrorSeverity: ...
796
+ @_property
797
+ def server_certificate_errors(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.ChainValidationResult]]: ...
798
+ @_property
799
+ def server_intermediate_certificates(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_security_cryptography_certificates.Certificate]]: ...
800
+ @_property
801
+ def bandwidth_statistics(self) -> BandwidthStatistics: ...
802
+ @_property
803
+ def local_address(self) -> typing.Optional[windows_networking.HostName]: ...
804
+ @_property
805
+ def protocol(self) -> str: ...
806
+
@@ -0,0 +1,202 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_networking_sockets
7
+
8
+ __all__ = [
9
+ "ControlChannelTriggerResetReason",
10
+ "ControlChannelTriggerResourceType",
11
+ "ControlChannelTriggerStatus",
12
+ "MessageWebSocketReceiveMode",
13
+ "SocketActivityConnectedStandbyAction",
14
+ "SocketActivityKind",
15
+ "SocketActivityTriggerReason",
16
+ "SocketErrorStatus",
17
+ "SocketMessageType",
18
+ "SocketProtectionLevel",
19
+ "SocketQualityOfService",
20
+ "SocketSslErrorSeverity",
21
+ "BandwidthStatistics",
22
+ "RoundTripTimeStatistics",
23
+ "ControlChannelTrigger",
24
+ "DatagramSocket",
25
+ "DatagramSocketControl",
26
+ "DatagramSocketInformation",
27
+ "DatagramSocketMessageReceivedEventArgs",
28
+ "MessageWebSocket",
29
+ "MessageWebSocketControl",
30
+ "MessageWebSocketInformation",
31
+ "MessageWebSocketMessageReceivedEventArgs",
32
+ "ServerMessageWebSocket",
33
+ "ServerMessageWebSocketControl",
34
+ "ServerMessageWebSocketInformation",
35
+ "ServerStreamWebSocket",
36
+ "ServerStreamWebSocketInformation",
37
+ "SocketActivityContext",
38
+ "SocketActivityInformation",
39
+ "SocketActivityTriggerDetails",
40
+ "SocketError",
41
+ "StreamSocket",
42
+ "StreamSocketControl",
43
+ "StreamSocketInformation",
44
+ "StreamSocketListener",
45
+ "StreamSocketListenerConnectionReceivedEventArgs",
46
+ "StreamSocketListenerControl",
47
+ "StreamSocketListenerInformation",
48
+ "StreamWebSocket",
49
+ "StreamWebSocketControl",
50
+ "StreamWebSocketInformation",
51
+ "WebSocketClosedEventArgs",
52
+ "WebSocketError",
53
+ "WebSocketKeepAlive",
54
+ "WebSocketServerCustomValidationRequestedEventArgs",
55
+ "IControlChannelTriggerEventDetails",
56
+ "IControlChannelTriggerResetEventDetails",
57
+ "IWebSocket",
58
+ "IWebSocketControl",
59
+ "IWebSocketControl2",
60
+ "IWebSocketInformation",
61
+ "IWebSocketInformation2",
62
+ ]
63
+
64
+ class ControlChannelTriggerResetReason(enum.IntEnum):
65
+ FAST_USER_SWITCHED = 0
66
+ LOW_POWER_EXIT = 1
67
+ QUIET_HOURS_EXIT = 2
68
+ APPLICATION_RESTART = 3
69
+
70
+ class ControlChannelTriggerResourceType(enum.IntEnum):
71
+ REQUEST_SOFTWARE_SLOT = 0
72
+ REQUEST_HARDWARE_SLOT = 1
73
+
74
+ class ControlChannelTriggerStatus(enum.IntEnum):
75
+ HARDWARE_SLOT_REQUESTED = 0
76
+ SOFTWARE_SLOT_ALLOCATED = 1
77
+ HARDWARE_SLOT_ALLOCATED = 2
78
+ POLICY_ERROR = 3
79
+ SYSTEM_ERROR = 4
80
+ TRANSPORT_DISCONNECTED = 5
81
+ SERVICE_UNAVAILABLE = 6
82
+
83
+ class MessageWebSocketReceiveMode(enum.IntEnum):
84
+ FULL_MESSAGE = 0
85
+ PARTIAL_MESSAGE = 1
86
+
87
+ class SocketActivityConnectedStandbyAction(enum.IntEnum):
88
+ DO_NOT_WAKE = 0
89
+ WAKE = 1
90
+
91
+ class SocketActivityKind(enum.IntEnum):
92
+ NONE = 0
93
+ STREAM_SOCKET_LISTENER = 1
94
+ DATAGRAM_SOCKET = 2
95
+ STREAM_SOCKET = 3
96
+
97
+ class SocketActivityTriggerReason(enum.IntEnum):
98
+ NONE = 0
99
+ SOCKET_ACTIVITY = 1
100
+ CONNECTION_ACCEPTED = 2
101
+ KEEP_ALIVE_TIMER_EXPIRED = 3
102
+ SOCKET_CLOSED = 4
103
+
104
+ class SocketErrorStatus(enum.IntEnum):
105
+ UNKNOWN = 0
106
+ OPERATION_ABORTED = 1
107
+ HTTP_INVALID_SERVER_RESPONSE = 2
108
+ CONNECTION_TIMED_OUT = 3
109
+ ADDRESS_FAMILY_NOT_SUPPORTED = 4
110
+ SOCKET_TYPE_NOT_SUPPORTED = 5
111
+ HOST_NOT_FOUND = 6
112
+ NO_DATA_RECORD_OF_REQUESTED_TYPE = 7
113
+ NON_AUTHORITATIVE_HOST_NOT_FOUND = 8
114
+ CLASS_TYPE_NOT_FOUND = 9
115
+ ADDRESS_ALREADY_IN_USE = 10
116
+ CANNOT_ASSIGN_REQUESTED_ADDRESS = 11
117
+ CONNECTION_REFUSED = 12
118
+ NETWORK_IS_UNREACHABLE = 13
119
+ UNREACHABLE_HOST = 14
120
+ NETWORK_IS_DOWN = 15
121
+ NETWORK_DROPPED_CONNECTION_ON_RESET = 16
122
+ SOFTWARE_CAUSED_CONNECTION_ABORT = 17
123
+ CONNECTION_RESET_BY_PEER = 18
124
+ HOST_IS_DOWN = 19
125
+ NO_ADDRESSES_FOUND = 20
126
+ TOO_MANY_OPEN_FILES = 21
127
+ MESSAGE_TOO_LONG = 22
128
+ CERTIFICATE_EXPIRED = 23
129
+ CERTIFICATE_UNTRUSTED_ROOT = 24
130
+ CERTIFICATE_COMMON_NAME_IS_INCORRECT = 25
131
+ CERTIFICATE_WRONG_USAGE = 26
132
+ CERTIFICATE_REVOKED = 27
133
+ CERTIFICATE_NO_REVOCATION_CHECK = 28
134
+ CERTIFICATE_REVOCATION_SERVER_OFFLINE = 29
135
+ CERTIFICATE_IS_INVALID = 30
136
+
137
+ class SocketMessageType(enum.IntEnum):
138
+ BINARY = 0
139
+ UTF8 = 1
140
+
141
+ class SocketProtectionLevel(enum.IntEnum):
142
+ PLAIN_SOCKET = 0
143
+ SSL = 1
144
+ SSL_ALLOW_NULL_ENCRYPTION = 2
145
+ BLUETOOTH_ENCRYPTION_ALLOW_NULL_AUTHENTICATION = 3
146
+ BLUETOOTH_ENCRYPTION_WITH_AUTHENTICATION = 4
147
+ SSL3_ALLOW_WEAK_ENCRYPTION = 5
148
+ TLS10 = 6
149
+ TLS11 = 7
150
+ TLS12 = 8
151
+ UNSPECIFIED = 9
152
+
153
+ class SocketQualityOfService(enum.IntEnum):
154
+ NORMAL = 0
155
+ LOW_LATENCY = 1
156
+
157
+ class SocketSslErrorSeverity(enum.IntEnum):
158
+ NONE = 0
159
+ IGNORABLE = 1
160
+ FATAL = 2
161
+
162
+ BandwidthStatistics = _winrt_windows_networking_sockets.BandwidthStatistics
163
+ RoundTripTimeStatistics = _winrt_windows_networking_sockets.RoundTripTimeStatistics
164
+ ControlChannelTrigger = _winrt_windows_networking_sockets.ControlChannelTrigger
165
+ DatagramSocket = _winrt_windows_networking_sockets.DatagramSocket
166
+ DatagramSocketControl = _winrt_windows_networking_sockets.DatagramSocketControl
167
+ DatagramSocketInformation = _winrt_windows_networking_sockets.DatagramSocketInformation
168
+ DatagramSocketMessageReceivedEventArgs = _winrt_windows_networking_sockets.DatagramSocketMessageReceivedEventArgs
169
+ MessageWebSocket = _winrt_windows_networking_sockets.MessageWebSocket
170
+ MessageWebSocketControl = _winrt_windows_networking_sockets.MessageWebSocketControl
171
+ MessageWebSocketInformation = _winrt_windows_networking_sockets.MessageWebSocketInformation
172
+ MessageWebSocketMessageReceivedEventArgs = _winrt_windows_networking_sockets.MessageWebSocketMessageReceivedEventArgs
173
+ ServerMessageWebSocket = _winrt_windows_networking_sockets.ServerMessageWebSocket
174
+ ServerMessageWebSocketControl = _winrt_windows_networking_sockets.ServerMessageWebSocketControl
175
+ ServerMessageWebSocketInformation = _winrt_windows_networking_sockets.ServerMessageWebSocketInformation
176
+ ServerStreamWebSocket = _winrt_windows_networking_sockets.ServerStreamWebSocket
177
+ ServerStreamWebSocketInformation = _winrt_windows_networking_sockets.ServerStreamWebSocketInformation
178
+ SocketActivityContext = _winrt_windows_networking_sockets.SocketActivityContext
179
+ SocketActivityInformation = _winrt_windows_networking_sockets.SocketActivityInformation
180
+ SocketActivityTriggerDetails = _winrt_windows_networking_sockets.SocketActivityTriggerDetails
181
+ SocketError = _winrt_windows_networking_sockets.SocketError
182
+ StreamSocket = _winrt_windows_networking_sockets.StreamSocket
183
+ StreamSocketControl = _winrt_windows_networking_sockets.StreamSocketControl
184
+ StreamSocketInformation = _winrt_windows_networking_sockets.StreamSocketInformation
185
+ StreamSocketListener = _winrt_windows_networking_sockets.StreamSocketListener
186
+ StreamSocketListenerConnectionReceivedEventArgs = _winrt_windows_networking_sockets.StreamSocketListenerConnectionReceivedEventArgs
187
+ StreamSocketListenerControl = _winrt_windows_networking_sockets.StreamSocketListenerControl
188
+ StreamSocketListenerInformation = _winrt_windows_networking_sockets.StreamSocketListenerInformation
189
+ StreamWebSocket = _winrt_windows_networking_sockets.StreamWebSocket
190
+ StreamWebSocketControl = _winrt_windows_networking_sockets.StreamWebSocketControl
191
+ StreamWebSocketInformation = _winrt_windows_networking_sockets.StreamWebSocketInformation
192
+ WebSocketClosedEventArgs = _winrt_windows_networking_sockets.WebSocketClosedEventArgs
193
+ WebSocketError = _winrt_windows_networking_sockets.WebSocketError
194
+ WebSocketKeepAlive = _winrt_windows_networking_sockets.WebSocketKeepAlive
195
+ WebSocketServerCustomValidationRequestedEventArgs = _winrt_windows_networking_sockets.WebSocketServerCustomValidationRequestedEventArgs
196
+ IControlChannelTriggerEventDetails = _winrt_windows_networking_sockets.IControlChannelTriggerEventDetails
197
+ IControlChannelTriggerResetEventDetails = _winrt_windows_networking_sockets.IControlChannelTriggerResetEventDetails
198
+ IWebSocket = _winrt_windows_networking_sockets.IWebSocket
199
+ IWebSocketControl = _winrt_windows_networking_sockets.IWebSocketControl
200
+ IWebSocketControl2 = _winrt_windows_networking_sockets.IWebSocketControl2
201
+ IWebSocketInformation = _winrt_windows_networking_sockets.IWebSocketInformation
202
+ IWebSocketInformation2 = _winrt_windows_networking_sockets.IWebSocketInformation2
File without changes
@@ -0,0 +1,33 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Networking.Sockets
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Background[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Networking[all] ==2.2.0 ; extra == 'all'
21
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all] ==2.2.0 ; extra == 'all'
22
+ Requires-Dist: winrt-Windows.Security.Credentials[all] ==2.2.0 ; extra == 'all'
23
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all] ==2.2.0 ; extra == 'all'
24
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
25
+ Requires-Dist: winrt-Windows.Web[all] ==2.2.0 ; extra == 'all'
26
+
27
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
28
+
29
+ # winrt-Windows.Networking.Sockets
30
+
31
+ Windows Runtime (WinRT) APIs for for the `Windows.Networking.Sockets` namespace.
32
+
33
+ This package provides the `winrt.windows.networking.sockets` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_networking_sockets.cp313-win_arm64.pyd,sha256=XLWRhB_cNHbXeGRIMXcTXu9s9JRZQZKwPr61V9MbqC4,647168
2
+ winrt/_winrt_windows_networking_sockets.pyi,sha256=TRvqzYXPZ7uvHeQERAPa7zazHSfCabpBqN6md0L_vWw,43023
3
+ winrt/windows/networking/sockets/__init__.py,sha256=q-6bn-S63xxVLO0o6quzNIYltZVXe2DBorBFSryfO6I,8069
4
+ winrt/windows/networking/sockets/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Networking.Sockets-2.2.0.dist-info/METADATA,sha256=lwsrM6jDSadnHMpqzdwvL1wsE8vEioQdNCptxhJYt6g,1697
6
+ winrt_Windows.Networking.Sockets-2.2.0.dist-info/WHEEL,sha256=Bc3zGnBzvnkuBaMd-KCqScACPFmA-93PSEDjeXqCzu8,101
7
+ winrt_Windows.Networking.Sockets-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Networking.Sockets-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win_arm64
5
+