@tsonic/dotnet 0.8.0 → 0.8.2
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.
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
- package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
- package/Microsoft.Win32/internal/index.d.ts +12 -12
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +1277 -1289
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +13 -13
- package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
- package/System.Collections/internal/index.d.ts +66 -68
- package/System.Collections.Concurrent/internal/index.d.ts +24 -24
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +44 -20
- package/System.Collections.Generic/internal/index.d.ts +141 -133
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +121 -121
- package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
- package/System.Collections.Specialized/internal/index.d.ts +85 -87
- package/System.ComponentModel/internal/index.d.ts +595 -597
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
- package/System.ComponentModel.Design/internal/index.d.ts +90 -90
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
- package/System.Data/internal/index.d.ts +225 -225
- package/System.Data.Common/internal/index.d.ts +62 -62
- package/System.Data.SqlTypes/internal/index.d.ts +73 -73
- package/System.Diagnostics/internal/index.d.ts +343 -343
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
- package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
- package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
- package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
- package/System.Drawing/internal/index.d.ts +99 -99
- package/System.Dynamic/internal/index.d.ts +33 -33
- package/System.Formats.Asn1/internal/index.d.ts +12 -12
- package/System.Formats.Tar/internal/index.d.ts +17 -17
- package/System.Globalization/internal/index.d.ts +51 -51
- package/System.IO/internal/index.d.ts +172 -172
- package/System.IO.Compression/internal/index.d.ts +56 -56
- package/System.IO.Enumeration/internal/index.d.ts +6 -6
- package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
- package/System.IO.Pipelines/internal/index.d.ts +13 -13
- package/System.IO.Pipes/internal/index.d.ts +32 -32
- package/System.Linq/internal/index.d.ts +187 -187
- package/System.Linq.Expressions/internal/index.d.ts +203 -203
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
- package/System.Net/internal/index.d.ts +218 -220
- package/System.Net.Cache/internal/index.d.ts +10 -10
- package/System.Net.Http/internal/index.d.ts +89 -89
- package/System.Net.Http.Headers/internal/index.d.ts +86 -86
- package/System.Net.Http.Json/internal/index.d.ts +59 -59
- package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
- package/System.Net.Mail/internal/index.d.ts +92 -92
- package/System.Net.Mime/internal/index.d.ts +6 -6
- package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
- package/System.Net.Quic/internal/index.d.ts +13 -13
- package/System.Net.Security/internal/index.d.ts +70 -70
- package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
- package/System.Net.Sockets/internal/index.d.ts +94 -94
- package/System.Net.WebSockets/internal/index.d.ts +46 -46
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +128 -130
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +271 -271
- package/System.Reflection.Emit/internal/index.d.ts +123 -123
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +179 -179
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
- package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
- package/System.Resources/internal/index.d.ts +38 -38
- package/System.Runtime/internal/index.d.ts +9 -9
- package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
- package/System.Runtime.Loader/internal/index.d.ts +9 -9
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +113 -115
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
- package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
- package/System.Runtime.Versioning/internal/index.d.ts +22 -22
- package/System.Security/internal/index.d.ts +63 -63
- package/System.Security.AccessControl/internal/index.d.ts +84 -84
- package/System.Security.Authentication/internal/index.d.ts +6 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
- package/System.Security.Claims/internal/index.d.ts +38 -40
- package/System.Security.Cryptography/internal/index.d.ts +378 -378
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
- package/System.Security.Permissions/internal/index.d.ts +1 -1
- package/System.Security.Policy/internal/index.d.ts +6 -6
- package/System.Security.Principal/internal/index.d.ts +29 -31
- package/System.Text/internal/index.d.ts +94 -94
- package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
- package/System.Text.Json/internal/index.d.ts +103 -103
- package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
- package/System.Text.Json.Schema/internal/index.d.ts +7 -7
- package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
- package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
- package/System.Text.Unicode/internal/index.d.ts +6 -6
- package/System.Threading/internal/index.d.ts +160 -160
- package/System.Threading.Channels/internal/index.d.ts +12 -12
- package/System.Threading.Tasks/internal/index.d.ts +125 -135
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
- package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
- package/System.Timers/internal/index.d.ts +8 -8
- package/System.Transactions/internal/index.d.ts +51 -51
- package/System.Web/internal/index.d.ts +32 -32
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Windows.Markup/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +281 -281
- package/System.Xml.Linq/internal/index.d.ts +76 -76
- package/System.Xml.Resolvers/internal/index.d.ts +8 -8
- package/System.Xml.Schema/internal/index.d.ts +173 -173
- package/System.Xml.Serialization/internal/index.d.ts +200 -200
- package/System.Xml.XPath/internal/index.d.ts +28 -28
- package/System.Xml.Xsl/internal/index.d.ts +53 -53
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -369,7 +369,7 @@ export interface IPPacketInformation$instance {
|
|
|
369
369
|
|
|
370
370
|
|
|
371
371
|
export const IPPacketInformation: {
|
|
372
|
-
new(): IPPacketInformation
|
|
372
|
+
new(): IPPacketInformation;
|
|
373
373
|
};
|
|
374
374
|
|
|
375
375
|
|
|
@@ -390,7 +390,7 @@ export interface SocketInformation$instance {
|
|
|
390
390
|
|
|
391
391
|
|
|
392
392
|
export const SocketInformation: {
|
|
393
|
-
new(): SocketInformation
|
|
393
|
+
new(): SocketInformation;
|
|
394
394
|
};
|
|
395
395
|
|
|
396
396
|
|
|
@@ -403,7 +403,7 @@ export interface SocketReceiveFromResult$instance {
|
|
|
403
403
|
|
|
404
404
|
|
|
405
405
|
export const SocketReceiveFromResult: {
|
|
406
|
-
new(): SocketReceiveFromResult
|
|
406
|
+
new(): SocketReceiveFromResult;
|
|
407
407
|
};
|
|
408
408
|
|
|
409
409
|
|
|
@@ -418,7 +418,7 @@ export interface SocketReceiveMessageFromResult$instance {
|
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
export const SocketReceiveMessageFromResult: {
|
|
421
|
-
new(): SocketReceiveMessageFromResult
|
|
421
|
+
new(): SocketReceiveMessageFromResult;
|
|
422
422
|
};
|
|
423
423
|
|
|
424
424
|
|
|
@@ -434,7 +434,7 @@ export interface UdpReceiveResult$instance {
|
|
|
434
434
|
|
|
435
435
|
|
|
436
436
|
export const UdpReceiveResult: {
|
|
437
|
-
new(buffer: byte[], remoteEndPoint: IPEndPoint): UdpReceiveResult
|
|
437
|
+
new(buffer: byte[], remoteEndPoint: IPEndPoint): UdpReceiveResult;
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
|
|
@@ -455,8 +455,8 @@ export interface IPv6MulticastOption$instance {
|
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
export const IPv6MulticastOption: {
|
|
458
|
-
new(group: IPAddress, ifindex: long): IPv6MulticastOption
|
|
459
|
-
new(group: IPAddress): IPv6MulticastOption
|
|
458
|
+
new(group: IPAddress, ifindex: long): IPv6MulticastOption;
|
|
459
|
+
new(group: IPAddress): IPv6MulticastOption;
|
|
460
460
|
};
|
|
461
461
|
|
|
462
462
|
|
|
@@ -471,7 +471,7 @@ export interface LingerOption$instance {
|
|
|
471
471
|
|
|
472
472
|
|
|
473
473
|
export const LingerOption: {
|
|
474
|
-
new(enable: boolean, seconds: int): LingerOption
|
|
474
|
+
new(enable: boolean, seconds: int): LingerOption;
|
|
475
475
|
};
|
|
476
476
|
|
|
477
477
|
|
|
@@ -480,14 +480,14 @@ export type LingerOption = LingerOption$instance;
|
|
|
480
480
|
export interface MulticastOption$instance {
|
|
481
481
|
group: IPAddress;
|
|
482
482
|
interfaceIndex: int;
|
|
483
|
-
localAddress: IPAddress;
|
|
483
|
+
localAddress: IPAddress | undefined;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
|
|
487
487
|
export const MulticastOption: {
|
|
488
|
-
new(group: IPAddress, mcint: IPAddress): MulticastOption
|
|
489
|
-
new(group: IPAddress, interfaceIndex: int): MulticastOption
|
|
490
|
-
new(group: IPAddress): MulticastOption
|
|
488
|
+
new(group: IPAddress, mcint: IPAddress): MulticastOption;
|
|
489
|
+
new(group: IPAddress, interfaceIndex: int): MulticastOption;
|
|
490
|
+
new(group: IPAddress): MulticastOption;
|
|
491
491
|
};
|
|
492
492
|
|
|
493
493
|
|
|
@@ -504,8 +504,8 @@ export interface NetworkStream$instance extends Stream {
|
|
|
504
504
|
readTimeout: int;
|
|
505
505
|
readonly socket: Socket;
|
|
506
506
|
writeTimeout: int;
|
|
507
|
-
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
508
|
-
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
507
|
+
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
508
|
+
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
509
509
|
close(timeout: TimeSpan): void;
|
|
510
510
|
close(): void;
|
|
511
511
|
dispose(): void;
|
|
@@ -538,10 +538,10 @@ export interface NetworkStream$instance extends Stream {
|
|
|
538
538
|
|
|
539
539
|
|
|
540
540
|
export const NetworkStream: {
|
|
541
|
-
new(socket: Socket): NetworkStream
|
|
542
|
-
new(socket: Socket, ownsSocket: boolean): NetworkStream
|
|
543
|
-
new(socket: Socket, access: FileAccess): NetworkStream
|
|
544
|
-
new(socket: Socket, access: FileAccess, ownsSocket: boolean): NetworkStream
|
|
541
|
+
new(socket: Socket): NetworkStream;
|
|
542
|
+
new(socket: Socket, ownsSocket: boolean): NetworkStream;
|
|
543
|
+
new(socket: Socket, access: FileAccess): NetworkStream;
|
|
544
|
+
new(socket: Socket, access: FileAccess, ownsSocket: boolean): NetworkStream;
|
|
545
545
|
};
|
|
546
546
|
|
|
547
547
|
|
|
@@ -560,8 +560,8 @@ export interface SafeSocketHandle$instance extends SafeHandleMinusOneIsInvalid {
|
|
|
560
560
|
|
|
561
561
|
|
|
562
562
|
export const SafeSocketHandle: {
|
|
563
|
-
new(): SafeSocketHandle
|
|
564
|
-
new(preexistingHandle: nint, ownsHandle: boolean): SafeSocketHandle
|
|
563
|
+
new(): SafeSocketHandle;
|
|
564
|
+
new(preexistingHandle: nint, ownsHandle: boolean): SafeSocketHandle;
|
|
565
565
|
};
|
|
566
566
|
|
|
567
567
|
|
|
@@ -576,8 +576,8 @@ export interface SendPacketsElement$instance {
|
|
|
576
576
|
readonly buffer: byte[];
|
|
577
577
|
readonly count: int;
|
|
578
578
|
readonly endOfPacket: boolean;
|
|
579
|
-
readonly filePath: string;
|
|
580
|
-
readonly fileStream: FileStream;
|
|
579
|
+
readonly filePath: string | undefined;
|
|
580
|
+
readonly fileStream: FileStream | undefined;
|
|
581
581
|
readonly memoryBuffer: Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>>;
|
|
582
582
|
readonly offset: int;
|
|
583
583
|
readonly offsetLong: long;
|
|
@@ -585,19 +585,19 @@ export interface SendPacketsElement$instance {
|
|
|
585
585
|
|
|
586
586
|
|
|
587
587
|
export const SendPacketsElement: {
|
|
588
|
-
new(filepath: string): SendPacketsElement
|
|
589
|
-
new(filepath: string, offset: int, count: int): SendPacketsElement
|
|
590
|
-
new(filepath: string, offset: int, count: int, endOfPacket: boolean): SendPacketsElement
|
|
591
|
-
new(filepath: string, offset: long, count: int): SendPacketsElement
|
|
592
|
-
new(filepath: string, offset: long, count: int, endOfPacket: boolean): SendPacketsElement
|
|
593
|
-
new(fileStream: FileStream): SendPacketsElement
|
|
594
|
-
new(fileStream: FileStream, offset: long, count: int): SendPacketsElement
|
|
595
|
-
new(fileStream: FileStream, offset: long, count: int, endOfPacket: boolean): SendPacketsElement
|
|
596
|
-
new(buffer: byte[]): SendPacketsElement
|
|
597
|
-
new(buffer: byte[], offset: int, count: int): SendPacketsElement
|
|
598
|
-
new(buffer: byte[], offset: int, count: int, endOfPacket: boolean): SendPacketsElement
|
|
599
|
-
new(buffer: ReadOnlyMemory_1<System_Internal.Byte>): SendPacketsElement
|
|
600
|
-
new(buffer: ReadOnlyMemory_1<System_Internal.Byte>, endOfPacket: boolean): SendPacketsElement
|
|
588
|
+
new(filepath: string): SendPacketsElement;
|
|
589
|
+
new(filepath: string, offset: int, count: int): SendPacketsElement;
|
|
590
|
+
new(filepath: string, offset: int, count: int, endOfPacket: boolean): SendPacketsElement;
|
|
591
|
+
new(filepath: string, offset: long, count: int): SendPacketsElement;
|
|
592
|
+
new(filepath: string, offset: long, count: int, endOfPacket: boolean): SendPacketsElement;
|
|
593
|
+
new(fileStream: FileStream): SendPacketsElement;
|
|
594
|
+
new(fileStream: FileStream, offset: long, count: int): SendPacketsElement;
|
|
595
|
+
new(fileStream: FileStream, offset: long, count: int, endOfPacket: boolean): SendPacketsElement;
|
|
596
|
+
new(buffer: byte[]): SendPacketsElement;
|
|
597
|
+
new(buffer: byte[], offset: int, count: int): SendPacketsElement;
|
|
598
|
+
new(buffer: byte[], offset: int, count: int, endOfPacket: boolean): SendPacketsElement;
|
|
599
|
+
new(buffer: ReadOnlyMemory_1<System_Internal.Byte>): SendPacketsElement;
|
|
600
|
+
new(buffer: ReadOnlyMemory_1<System_Internal.Byte>, endOfPacket: boolean): SendPacketsElement;
|
|
601
601
|
};
|
|
602
602
|
|
|
603
603
|
|
|
@@ -614,7 +614,7 @@ export interface Socket$instance {
|
|
|
614
614
|
exclusiveAddressUse: boolean;
|
|
615
615
|
readonly handle: nint;
|
|
616
616
|
readonly isBound: boolean;
|
|
617
|
-
lingerState: LingerOption;
|
|
617
|
+
lingerState: LingerOption | undefined;
|
|
618
618
|
readonly localEndPoint: EndPoint;
|
|
619
619
|
multicastLoopback: boolean;
|
|
620
620
|
noDelay: boolean;
|
|
@@ -632,29 +632,29 @@ export interface Socket$instance {
|
|
|
632
632
|
acceptAsync(e: SocketAsyncEventArgs): boolean;
|
|
633
633
|
acceptAsync(): Task_1<Socket>;
|
|
634
634
|
acceptAsync(cancellationToken: CancellationToken): ValueTask_1<Socket>;
|
|
635
|
-
acceptAsync(acceptSocket: Socket): Task_1<Socket>;
|
|
635
|
+
acceptAsync(acceptSocket: Socket | undefined): Task_1<Socket>;
|
|
636
636
|
acceptAsync(acceptSocket: Socket, cancellationToken: CancellationToken): ValueTask_1<Socket>;
|
|
637
637
|
beginAccept(callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
638
638
|
beginAccept(receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
639
639
|
beginAccept(acceptSocket: Socket, receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
640
|
-
beginConnect(remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
641
|
-
beginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
642
|
-
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
643
|
-
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
640
|
+
beginConnect(remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
641
|
+
beginConnect(host: string, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
642
|
+
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
643
|
+
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
644
644
|
beginDisconnect(reuseSocket: boolean, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
645
|
-
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
645
|
+
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
646
646
|
beginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
647
647
|
beginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
648
648
|
beginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
649
|
-
beginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
650
|
-
beginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
651
|
-
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
649
|
+
beginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
650
|
+
beginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
651
|
+
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
652
652
|
beginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
653
653
|
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
654
654
|
beginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
655
655
|
beginSendFile(fileName: string, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
656
656
|
beginSendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
657
|
-
beginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
657
|
+
beginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
658
658
|
bind(localEP: EndPoint): void;
|
|
659
659
|
close(): void;
|
|
660
660
|
close(timeout: int): void;
|
|
@@ -757,9 +757,9 @@ export interface Socket$instance {
|
|
|
757
757
|
sendAsync(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags): Task_1<System_Internal.Int32>;
|
|
758
758
|
sendFile(fileName: string): void;
|
|
759
759
|
sendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions): void;
|
|
760
|
-
sendFile(fileName: string, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
|
|
760
|
+
sendFile(fileName: string | undefined, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
|
|
761
761
|
sendFileAsync(fileName: string, cancellationToken?: CancellationToken): ValueTask;
|
|
762
|
-
sendFileAsync(fileName: string, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
|
|
762
|
+
sendFileAsync(fileName: string | undefined, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
|
|
763
763
|
sendPacketsAsync(e: SocketAsyncEventArgs): boolean;
|
|
764
764
|
sendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
|
|
765
765
|
sendTo(buffer: byte[], size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
|
|
@@ -785,10 +785,10 @@ export interface Socket$instance {
|
|
|
785
785
|
|
|
786
786
|
|
|
787
787
|
export const Socket: {
|
|
788
|
-
new(socketType: SocketType, protocolType: ProtocolType): Socket
|
|
789
|
-
new(addressFamily: AddressFamily, socketType: SocketType, protocolType: ProtocolType): Socket
|
|
790
|
-
new(handle: SafeSocketHandle): Socket
|
|
791
|
-
new(socketInformation: SocketInformation): Socket
|
|
788
|
+
new(socketType: SocketType, protocolType: ProtocolType): Socket;
|
|
789
|
+
new(addressFamily: AddressFamily, socketType: SocketType, protocolType: ProtocolType): Socket;
|
|
790
|
+
new(handle: SafeSocketHandle): Socket;
|
|
791
|
+
new(socketInformation: SocketInformation): Socket;
|
|
792
792
|
readonly supportsIPv4: boolean;
|
|
793
793
|
readonly supportsIPv6: boolean;
|
|
794
794
|
readonly osSupportsIPv4: boolean;
|
|
@@ -811,12 +811,12 @@ export type Socket = Socket$instance & __Socket$views;
|
|
|
811
811
|
|
|
812
812
|
|
|
813
813
|
export interface SocketAsyncEventArgs$instance extends EventArgs {
|
|
814
|
-
acceptSocket: Socket;
|
|
814
|
+
acceptSocket: Socket | undefined;
|
|
815
815
|
readonly buffer: byte[];
|
|
816
|
-
bufferList: IList_1<ArraySegment_1<System_Internal.Byte
|
|
816
|
+
bufferList: IList_1<ArraySegment_1<System_Internal.Byte>> | undefined;
|
|
817
817
|
readonly bytesTransferred: int;
|
|
818
|
-
readonly connectByNameError: Exception;
|
|
819
|
-
readonly connectSocket: Socket;
|
|
818
|
+
readonly connectByNameError: Exception | undefined;
|
|
819
|
+
readonly connectSocket: Socket | undefined;
|
|
820
820
|
readonly count: int;
|
|
821
821
|
disconnectReuseSocket: boolean;
|
|
822
822
|
readonly lastOperation: SocketAsyncOperation;
|
|
@@ -824,22 +824,22 @@ export interface SocketAsyncEventArgs$instance extends EventArgs {
|
|
|
824
824
|
readonly offset: int;
|
|
825
825
|
readonly receiveMessageFromPacketInfo: IPPacketInformation;
|
|
826
826
|
remoteEndPoint: EndPoint;
|
|
827
|
-
sendPacketsElements: SendPacketsElement[];
|
|
827
|
+
sendPacketsElements: SendPacketsElement[] | undefined;
|
|
828
828
|
sendPacketsFlags: TransmitFileOptions;
|
|
829
829
|
sendPacketsSendSize: int;
|
|
830
830
|
socketError: SocketError;
|
|
831
831
|
socketFlags: SocketFlags;
|
|
832
|
-
userToken: unknown;
|
|
832
|
+
userToken: unknown | undefined;
|
|
833
833
|
dispose(): void;
|
|
834
834
|
setBuffer(offset: int, count: int): void;
|
|
835
|
-
setBuffer(buffer: byte[], offset: int, count: int): void;
|
|
835
|
+
setBuffer(buffer: byte[] | undefined, offset: int, count: int): void;
|
|
836
836
|
setBuffer(buffer: Memory_1<System_Internal.Byte>): void;
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
|
|
840
840
|
export const SocketAsyncEventArgs: {
|
|
841
|
-
new(): SocketAsyncEventArgs
|
|
842
|
-
new(unsafeSuppressExecutionContextFlow: boolean): SocketAsyncEventArgs
|
|
841
|
+
new(): SocketAsyncEventArgs;
|
|
842
|
+
new(unsafeSuppressExecutionContextFlow: boolean): SocketAsyncEventArgs;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
845
|
|
|
@@ -861,9 +861,9 @@ export interface SocketException$instance extends Win32Exception {
|
|
|
861
861
|
|
|
862
862
|
|
|
863
863
|
export const SocketException: {
|
|
864
|
-
new(errorCode: int): SocketException
|
|
865
|
-
new(errorCode: int, message: string): SocketException
|
|
866
|
-
new(): SocketException
|
|
864
|
+
new(errorCode: int): SocketException;
|
|
865
|
+
new(errorCode: int, message: string): SocketException;
|
|
866
|
+
new(): SocketException;
|
|
867
867
|
};
|
|
868
868
|
|
|
869
869
|
|
|
@@ -879,15 +879,15 @@ export interface TcpClient$instance {
|
|
|
879
879
|
client: Socket;
|
|
880
880
|
readonly connected: boolean;
|
|
881
881
|
exclusiveAddressUse: boolean;
|
|
882
|
-
lingerState: LingerOption;
|
|
882
|
+
lingerState: LingerOption | undefined;
|
|
883
883
|
noDelay: boolean;
|
|
884
884
|
receiveBufferSize: int;
|
|
885
885
|
receiveTimeout: int;
|
|
886
886
|
sendBufferSize: int;
|
|
887
887
|
sendTimeout: int;
|
|
888
|
-
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
889
|
-
beginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
890
|
-
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
888
|
+
beginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
889
|
+
beginConnect(host: string, port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
890
|
+
beginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
891
891
|
close(): void;
|
|
892
892
|
connect(hostname: string, port: int): void;
|
|
893
893
|
connect(address: IPAddress, port: int): void;
|
|
@@ -908,10 +908,10 @@ export interface TcpClient$instance {
|
|
|
908
908
|
|
|
909
909
|
|
|
910
910
|
export const TcpClient: {
|
|
911
|
-
new(): TcpClient
|
|
912
|
-
new(family: AddressFamily): TcpClient
|
|
913
|
-
new(localEP: IPEndPoint): TcpClient
|
|
914
|
-
new(hostname: string, port: int): TcpClient
|
|
911
|
+
new(): TcpClient;
|
|
912
|
+
new(family: AddressFamily): TcpClient;
|
|
913
|
+
new(localEP: IPEndPoint): TcpClient;
|
|
914
|
+
new(hostname: string, port: int): TcpClient;
|
|
915
915
|
};
|
|
916
916
|
|
|
917
917
|
|
|
@@ -948,9 +948,9 @@ export interface TcpListener$instance {
|
|
|
948
948
|
|
|
949
949
|
|
|
950
950
|
export const TcpListener: {
|
|
951
|
-
new(localEP: IPEndPoint): TcpListener
|
|
952
|
-
new(localaddr: IPAddress, port: int): TcpListener
|
|
953
|
-
new(port: int): TcpListener
|
|
951
|
+
new(localEP: IPEndPoint): TcpListener;
|
|
952
|
+
new(localaddr: IPAddress, port: int): TcpListener;
|
|
953
|
+
new(port: int): TcpListener;
|
|
954
954
|
create(port: int): TcpListener;
|
|
955
955
|
};
|
|
956
956
|
|
|
@@ -974,7 +974,7 @@ export interface UdpClient$instance {
|
|
|
974
974
|
ttl: short;
|
|
975
975
|
allowNatTraversal(allowed: boolean): void;
|
|
976
976
|
beginReceive(requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
977
|
-
beginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
977
|
+
beginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
978
978
|
beginSend(datagram: byte[], bytes: int, hostname: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
979
979
|
beginSend(datagram: byte[], bytes: int, endPoint: IPEndPoint, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
|
|
980
980
|
close(): void;
|
|
@@ -984,37 +984,37 @@ export interface UdpClient$instance {
|
|
|
984
984
|
dispose(): void;
|
|
985
985
|
dropMulticastGroup(multicastAddr: IPAddress): void;
|
|
986
986
|
dropMulticastGroup(multicastAddr: IPAddress, ifindex: int): void;
|
|
987
|
-
endReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint): byte[];
|
|
987
|
+
endReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint | undefined): byte[];
|
|
988
988
|
endSend(asyncResult: IAsyncResult): int;
|
|
989
989
|
joinMulticastGroup(multicastAddr: IPAddress): void;
|
|
990
990
|
joinMulticastGroup(multicastAddr: IPAddress, localAddress: IPAddress): void;
|
|
991
991
|
joinMulticastGroup(ifindex: int, multicastAddr: IPAddress): void;
|
|
992
992
|
joinMulticastGroup(multicastAddr: IPAddress, timeToLive: int): void;
|
|
993
|
-
receive(remoteEP: IPEndPoint): byte[];
|
|
993
|
+
receive(remoteEP: IPEndPoint | undefined): byte[];
|
|
994
994
|
receiveAsync(): Task_1<UdpReceiveResult>;
|
|
995
995
|
receiveAsync(cancellationToken: CancellationToken): ValueTask_1<UdpReceiveResult>;
|
|
996
|
-
send(dgram: byte[], bytes: int, endPoint: IPEndPoint): int;
|
|
997
|
-
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint): int;
|
|
998
|
-
send(dgram: byte[], bytes: int, hostname: string, port: int): int;
|
|
999
|
-
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string, port: int): int;
|
|
996
|
+
send(dgram: byte[], bytes: int, endPoint: IPEndPoint | undefined): int;
|
|
997
|
+
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint | undefined): int;
|
|
998
|
+
send(dgram: byte[], bytes: int, hostname: string | undefined, port: int): int;
|
|
999
|
+
send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string | undefined, port: int): int;
|
|
1000
1000
|
send(dgram: byte[], bytes: int): int;
|
|
1001
1001
|
send(datagram: ReadOnlySpan_1<System_Internal.Byte>): int;
|
|
1002
1002
|
sendAsync(datagram: byte[], bytes: int): Task_1<System_Internal.Int32>;
|
|
1003
1003
|
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1004
|
-
sendAsync(datagram: byte[], bytes: int, hostname: string, port: int): Task_1<System_Internal.Int32>;
|
|
1005
|
-
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1006
|
-
sendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint): Task_1<System_Internal.Int32>;
|
|
1007
|
-
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1004
|
+
sendAsync(datagram: byte[], bytes: int, hostname: string | undefined, port: int): Task_1<System_Internal.Int32>;
|
|
1005
|
+
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string | undefined, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1006
|
+
sendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint | undefined): Task_1<System_Internal.Int32>;
|
|
1007
|
+
sendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint | undefined, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
1010
|
|
|
1011
1011
|
export const UdpClient: {
|
|
1012
|
-
new(): UdpClient
|
|
1013
|
-
new(family: AddressFamily): UdpClient
|
|
1014
|
-
new(port: int): UdpClient
|
|
1015
|
-
new(port: int, family: AddressFamily): UdpClient
|
|
1016
|
-
new(localEP: IPEndPoint): UdpClient
|
|
1017
|
-
new(hostname: string, port: int): UdpClient
|
|
1012
|
+
new(): UdpClient;
|
|
1013
|
+
new(family: AddressFamily): UdpClient;
|
|
1014
|
+
new(port: int): UdpClient;
|
|
1015
|
+
new(port: int, family: AddressFamily): UdpClient;
|
|
1016
|
+
new(localEP: IPEndPoint): UdpClient;
|
|
1017
|
+
new(hostname: string, port: int): UdpClient;
|
|
1018
1018
|
};
|
|
1019
1019
|
|
|
1020
1020
|
|
|
@@ -1038,14 +1038,14 @@ export interface UnixDomainSocketEndPoint$instance extends EndPoint {
|
|
|
1038
1038
|
|
|
1039
1039
|
|
|
1040
1040
|
export const UnixDomainSocketEndPoint: {
|
|
1041
|
-
new(path: string): UnixDomainSocketEndPoint
|
|
1041
|
+
new(path: string): UnixDomainSocketEndPoint;
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
1044
1044
|
|
|
1045
1045
|
export type UnixDomainSocketEndPoint = UnixDomainSocketEndPoint$instance;
|
|
1046
1046
|
|
|
1047
1047
|
export abstract class SocketTaskExtensions$instance {
|
|
1048
|
-
static acceptAsync(socket: Socket, acceptSocket: Socket): Task_1<Socket>;
|
|
1048
|
+
static acceptAsync(socket: Socket, acceptSocket: Socket | undefined): Task_1<Socket>;
|
|
1049
1049
|
static acceptAsync(socket: Socket): Task_1<Socket>;
|
|
1050
1050
|
static connectAsync(socket: Socket, remoteEP: EndPoint, cancellationToken: CancellationToken): ValueTask;
|
|
1051
1051
|
static connectAsync(socket: Socket, remoteEP: EndPoint): Task;
|
|
@@ -87,7 +87,7 @@ export interface ValueWebSocketReceiveResult$instance {
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
export const ValueWebSocketReceiveResult: {
|
|
90
|
-
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): ValueWebSocketReceiveResult
|
|
90
|
+
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): ValueWebSocketReceiveResult;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
|
|
@@ -95,17 +95,17 @@ export type ValueWebSocketReceiveResult = ValueWebSocketReceiveResult$instance;
|
|
|
95
95
|
|
|
96
96
|
export interface ClientWebSocket$instance extends WebSocket$instance {
|
|
97
97
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
98
|
-
readonly closeStatusDescription: string;
|
|
99
|
-
httpResponseHeaders: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String
|
|
98
|
+
readonly closeStatusDescription: string | undefined;
|
|
99
|
+
httpResponseHeaders: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | undefined;
|
|
100
100
|
readonly httpStatusCode: HttpStatusCode;
|
|
101
101
|
readonly options: ClientWebSocketOptions;
|
|
102
102
|
readonly state: WebSocketState;
|
|
103
|
-
readonly subProtocol: string;
|
|
103
|
+
readonly subProtocol: string | undefined;
|
|
104
104
|
abort(): void;
|
|
105
|
-
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
106
|
-
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
105
|
+
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
106
|
+
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
107
107
|
connectAsync(uri: Uri, cancellationToken: CancellationToken): Task;
|
|
108
|
-
connectAsync(uri: Uri, invoker: HttpMessageInvoker, cancellationToken: CancellationToken): Task;
|
|
108
|
+
connectAsync(uri: Uri, invoker: HttpMessageInvoker | undefined, cancellationToken: CancellationToken): Task;
|
|
109
109
|
dispose(): void;
|
|
110
110
|
receiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
|
|
111
111
|
receiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
|
|
@@ -119,7 +119,7 @@ export interface ClientWebSocket$instance extends WebSocket$instance {
|
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
export const ClientWebSocket: {
|
|
122
|
-
new(): ClientWebSocket
|
|
122
|
+
new(): ClientWebSocket;
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
|
|
@@ -135,23 +135,23 @@ export interface ClientWebSocketOptions$instance {
|
|
|
135
135
|
collectHttpResponseDetails: boolean;
|
|
136
136
|
cookies: CookieContainer;
|
|
137
137
|
credentials: ICredentials;
|
|
138
|
-
dangerousDeflateOptions: WebSocketDeflateOptions;
|
|
138
|
+
dangerousDeflateOptions: WebSocketDeflateOptions | undefined;
|
|
139
139
|
httpVersion: Version;
|
|
140
140
|
httpVersionPolicy: HttpVersionPolicy;
|
|
141
141
|
keepAliveInterval: TimeSpan;
|
|
142
142
|
keepAliveTimeout: TimeSpan;
|
|
143
|
-
proxy: IWebProxy;
|
|
144
|
-
remoteCertificateValidationCallback: RemoteCertificateValidationCallback;
|
|
143
|
+
proxy: IWebProxy | undefined;
|
|
144
|
+
remoteCertificateValidationCallback: RemoteCertificateValidationCallback | undefined;
|
|
145
145
|
useDefaultCredentials: boolean;
|
|
146
|
-
addSubProtocol(subProtocol: string): void;
|
|
146
|
+
addSubProtocol(subProtocol: string | undefined): void;
|
|
147
147
|
setBuffer(receiveBufferSize: int, sendBufferSize: int): void;
|
|
148
148
|
setBuffer(receiveBufferSize: int, sendBufferSize: int, buffer: ArraySegment_1<System_Internal.Byte>): void;
|
|
149
|
-
setRequestHeader(headerName: string, headerValue: string): void;
|
|
149
|
+
setRequestHeader(headerName: string | undefined, headerValue: string | undefined): void;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
export const ClientWebSocketOptions: {
|
|
154
|
-
new(): ClientWebSocketOptions
|
|
154
|
+
new(): ClientWebSocketOptions;
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
|
|
@@ -174,7 +174,7 @@ export interface HttpListenerWebSocketContext$instance extends WebSocketContext
|
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
export const HttpListenerWebSocketContext: {
|
|
177
|
-
new(): HttpListenerWebSocketContext
|
|
177
|
+
new(): HttpListenerWebSocketContext;
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
|
|
@@ -182,12 +182,12 @@ export type HttpListenerWebSocketContext = HttpListenerWebSocketContext$instance
|
|
|
182
182
|
|
|
183
183
|
export interface WebSocket$instance {
|
|
184
184
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
185
|
-
readonly closeStatusDescription: string;
|
|
185
|
+
readonly closeStatusDescription: string | undefined;
|
|
186
186
|
readonly state: WebSocketState;
|
|
187
|
-
readonly subProtocol: string;
|
|
187
|
+
readonly subProtocol: string | undefined;
|
|
188
188
|
abort(): void;
|
|
189
|
-
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
190
|
-
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
|
|
189
|
+
closeAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
190
|
+
closeOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | undefined, cancellationToken: CancellationToken): Task;
|
|
191
191
|
dispose(): void;
|
|
192
192
|
receiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
|
|
193
193
|
receiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
|
|
@@ -200,8 +200,8 @@ export interface WebSocket$instance {
|
|
|
200
200
|
export const WebSocket: {
|
|
201
201
|
readonly defaultKeepAliveInterval: TimeSpan;
|
|
202
202
|
createClientBuffer(receiveBufferSize: int, sendBufferSize: int): ArraySegment_1<System_Internal.Byte>;
|
|
203
|
-
createClientWebSocket(innerStream: Stream, subProtocol: string, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
|
|
204
|
-
createFromStream(stream: Stream, isServer: boolean, subProtocol: string, keepAliveInterval: TimeSpan): WebSocket;
|
|
203
|
+
createClientWebSocket(innerStream: Stream, subProtocol: string | undefined, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
|
|
204
|
+
createFromStream(stream: Stream, isServer: boolean, subProtocol: string | undefined, keepAliveInterval: TimeSpan): WebSocket;
|
|
205
205
|
createFromStream(stream: Stream, options: WebSocketCreationOptions): WebSocket;
|
|
206
206
|
createServerBuffer(receiveBufferSize: int): ArraySegment_1<System_Internal.Byte>;
|
|
207
207
|
isApplicationTargeting45(): boolean;
|
|
@@ -241,16 +241,16 @@ export const WebSocketContext: {
|
|
|
241
241
|
export type WebSocketContext = WebSocketContext$instance;
|
|
242
242
|
|
|
243
243
|
export interface WebSocketCreationOptions$instance {
|
|
244
|
-
dangerousDeflateOptions: WebSocketDeflateOptions;
|
|
244
|
+
dangerousDeflateOptions: WebSocketDeflateOptions | undefined;
|
|
245
245
|
isServer: boolean;
|
|
246
246
|
keepAliveInterval: TimeSpan;
|
|
247
247
|
keepAliveTimeout: TimeSpan;
|
|
248
|
-
subProtocol: string;
|
|
248
|
+
subProtocol: string | undefined;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
|
|
252
252
|
export const WebSocketCreationOptions: {
|
|
253
|
-
new(): WebSocketCreationOptions
|
|
253
|
+
new(): WebSocketCreationOptions;
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
|
|
@@ -265,7 +265,7 @@ export interface WebSocketDeflateOptions$instance {
|
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
export const WebSocketDeflateOptions: {
|
|
268
|
-
new(): WebSocketDeflateOptions
|
|
268
|
+
new(): WebSocketDeflateOptions;
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
|
|
@@ -274,25 +274,25 @@ export type WebSocketDeflateOptions = WebSocketDeflateOptions$instance;
|
|
|
274
274
|
export interface WebSocketException$instance extends Win32Exception {
|
|
275
275
|
readonly errorCode: int;
|
|
276
276
|
readonly webSocketErrorCode: WebSocketError;
|
|
277
|
-
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
277
|
+
getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
|
|
281
281
|
export const WebSocketException: {
|
|
282
|
-
new(): WebSocketException
|
|
283
|
-
new(error: WebSocketError): WebSocketException
|
|
284
|
-
new(error: WebSocketError, message: string): WebSocketException
|
|
285
|
-
new(error: WebSocketError, innerException: Exception): WebSocketException
|
|
286
|
-
new(error: WebSocketError, message: string, innerException: Exception): WebSocketException
|
|
287
|
-
new(nativeError: int): WebSocketException
|
|
288
|
-
new(nativeError: int, message: string): WebSocketException
|
|
289
|
-
new(nativeError: int, innerException: Exception): WebSocketException
|
|
290
|
-
new(error: WebSocketError, nativeError: int): WebSocketException
|
|
291
|
-
new(error: WebSocketError, nativeError: int, message: string): WebSocketException
|
|
292
|
-
new(error: WebSocketError, nativeError: int, innerException: Exception): WebSocketException
|
|
293
|
-
new(error: WebSocketError, nativeError: int, message: string, innerException: Exception): WebSocketException
|
|
294
|
-
new(message: string): WebSocketException
|
|
295
|
-
new(message: string, innerException: Exception): WebSocketException
|
|
282
|
+
new(): WebSocketException;
|
|
283
|
+
new(error: WebSocketError): WebSocketException;
|
|
284
|
+
new(error: WebSocketError, message: string | undefined): WebSocketException;
|
|
285
|
+
new(error: WebSocketError, innerException: Exception | undefined): WebSocketException;
|
|
286
|
+
new(error: WebSocketError, message: string | undefined, innerException: Exception | undefined): WebSocketException;
|
|
287
|
+
new(nativeError: int): WebSocketException;
|
|
288
|
+
new(nativeError: int, message: string | undefined): WebSocketException;
|
|
289
|
+
new(nativeError: int, innerException: Exception | undefined): WebSocketException;
|
|
290
|
+
new(error: WebSocketError, nativeError: int): WebSocketException;
|
|
291
|
+
new(error: WebSocketError, nativeError: int, message: string | undefined): WebSocketException;
|
|
292
|
+
new(error: WebSocketError, nativeError: int, innerException: Exception | undefined): WebSocketException;
|
|
293
|
+
new(error: WebSocketError, nativeError: int, message: string | undefined, innerException: Exception | undefined): WebSocketException;
|
|
294
|
+
new(message: string | undefined): WebSocketException;
|
|
295
|
+
new(message: string | undefined, innerException: Exception | undefined): WebSocketException;
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
|
|
@@ -305,7 +305,7 @@ export type WebSocketException = WebSocketException$instance & __WebSocketExcept
|
|
|
305
305
|
|
|
306
306
|
export interface WebSocketReceiveResult$instance {
|
|
307
307
|
readonly closeStatus: Nullable_1<WebSocketCloseStatus>;
|
|
308
|
-
readonly closeStatusDescription: string;
|
|
308
|
+
readonly closeStatusDescription: string | undefined;
|
|
309
309
|
readonly count: int;
|
|
310
310
|
readonly endOfMessage: boolean;
|
|
311
311
|
readonly messageType: WebSocketMessageType;
|
|
@@ -313,8 +313,8 @@ export interface WebSocketReceiveResult$instance {
|
|
|
313
313
|
|
|
314
314
|
|
|
315
315
|
export const WebSocketReceiveResult: {
|
|
316
|
-
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): WebSocketReceiveResult
|
|
317
|
-
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string): WebSocketReceiveResult
|
|
316
|
+
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): WebSocketReceiveResult;
|
|
317
|
+
new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string | undefined): WebSocketReceiveResult;
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
|
|
@@ -327,8 +327,8 @@ export interface WebSocketStream$instance extends Stream {
|
|
|
327
327
|
readonly length: long;
|
|
328
328
|
position: long;
|
|
329
329
|
readonly webSocket: WebSocket;
|
|
330
|
-
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
331
|
-
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
|
|
330
|
+
beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
331
|
+
beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
|
|
332
332
|
dispose(): void;
|
|
333
333
|
disposeAsync(): ValueTask;
|
|
334
334
|
endRead(asyncResult: IAsyncResult): int;
|
|
@@ -355,7 +355,7 @@ export interface WebSocketStream$instance extends Stream {
|
|
|
355
355
|
|
|
356
356
|
|
|
357
357
|
export const WebSocketStream: {
|
|
358
|
-
new(): WebSocketStream
|
|
358
|
+
new(): WebSocketStream;
|
|
359
359
|
create(webSocket: WebSocket, writeMessageType: WebSocketMessageType, ownsWebSocket?: boolean): WebSocketStream;
|
|
360
360
|
create(webSocket: WebSocket, writeMessageType: WebSocketMessageType, closeTimeout: TimeSpan): WebSocketStream;
|
|
361
361
|
createReadableMessageStream(webSocket: WebSocket): WebSocketStream;
|