@webvpn/dgram 0.0.1 → 0.2.0
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/build/index.cjs +2235 -2327
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +5 -184
- package/build/index.js +10094 -2664
- package/build/index.js.map +1 -1
- package/package.json +4 -6
- package/src/index.ts +5 -698
- package/vite-plugin-node-stdlib-browser.cjs +61 -61
- package/vite.config.ts +29 -29
- package/build/index.mjs +0 -3252
- package/build/index.mjs.map +0 -1
- package/build/test.d.ts +0 -1
- package/build/utils.d.ts +0 -13
- package/index.html +0 -11
- package/src/chrome-dgram.js +0 -503
- package/src/flatbuffers/client-packet-type.ts +0 -40
- package/src/flatbuffers/client-packet.ts +0 -162
- package/src/flatbuffers/client-tcpserver-close.ts +0 -93
- package/src/flatbuffers/client-tcpserver-get-connections.ts +0 -93
- package/src/flatbuffers/client-tcpserver-listen.ts +0 -211
- package/src/flatbuffers/client-tcpserver.ts +0 -159
- package/src/flatbuffers/client-tcpsocket-connect.ts +0 -253
- package/src/flatbuffers/client-tcpsocket-destroy-soon.ts +0 -75
- package/src/flatbuffers/client-tcpsocket-destroy.ts +0 -93
- package/src/flatbuffers/client-tcpsocket-end.ts +0 -93
- package/src/flatbuffers/client-tcpsocket-pause.ts +0 -75
- package/src/flatbuffers/client-tcpsocket-reset-and-destroy.ts +0 -75
- package/src/flatbuffers/client-tcpsocket-resume.ts +0 -75
- package/src/flatbuffers/client-tcpsocket-set-encoding.ts +0 -93
- package/src/flatbuffers/client-tcpsocket-set-keep-alive.ts +0 -103
- package/src/flatbuffers/client-tcpsocket-set-no-delay.ts +0 -89
- package/src/flatbuffers/client-tcpsocket-set-timeout.ts +0 -107
- package/src/flatbuffers/client-tcpsocket-write.ts +0 -147
- package/src/flatbuffers/client-tcpsocket.ts +0 -89
- package/src/flatbuffers/client-udpsocket-add-membership.ts +0 -110
- package/src/flatbuffers/client-udpsocket-add-source-specific-membership.ts +0 -127
- package/src/flatbuffers/client-udpsocket-bind.ts +0 -138
- package/src/flatbuffers/client-udpsocket-close.ts +0 -93
- package/src/flatbuffers/client-udpsocket-disconnect.ts +0 -75
- package/src/flatbuffers/client-udpsocket-drop-membership.ts +0 -110
- package/src/flatbuffers/client-udpsocket-drop-source-specific-membership.ts +0 -127
- package/src/flatbuffers/client-udpsocket-send.ts +0 -189
- package/src/flatbuffers/client-udpsocket-set-broadcast.ts +0 -89
- package/src/flatbuffers/client-udpsocket-set-multicast-interface.ts +0 -93
- package/src/flatbuffers/client-udpsocket-set-multicast-loopback.ts +0 -89
- package/src/flatbuffers/client-udpsocket-set-multicast-ttl.ts +0 -89
- package/src/flatbuffers/client-udpsocket-set-recv-buffer-size.ts +0 -89
- package/src/flatbuffers/client-udpsocket-set-send-buffer-size.ts +0 -89
- package/src/flatbuffers/client-udpsocket-set-ttl.ts +0 -89
- package/src/flatbuffers/client-udpsocket.ts +0 -149
- package/src/flatbuffers/packet-handshake-type.ts +0 -9
- package/src/flatbuffers/packet.ts +0 -210
- package/src/flatbuffers/schema.ts +0 -75
- package/src/flatbuffers/server-packet-type.ts +0 -38
- package/src/flatbuffers/server-packet.ts +0 -158
- package/src/flatbuffers/server-tcpserver-callback-close.ts +0 -93
- package/src/flatbuffers/server-tcpserver-callback-get-connections.ts +0 -124
- package/src/flatbuffers/server-tcpserver-callback-listen.ts +0 -141
- package/src/flatbuffers/server-tcpserver-event-close.ts +0 -75
- package/src/flatbuffers/server-tcpserver-event-drop.ts +0 -75
- package/src/flatbuffers/server-tcpserver-event-error.ts +0 -75
- package/src/flatbuffers/server-tcpserver-event-listening.ts +0 -124
- package/src/flatbuffers/server-tcpsocket-callback-connect.ts +0 -189
- package/src/flatbuffers/server-tcpsocket-callback-end.ts +0 -93
- package/src/flatbuffers/server-tcpsocket-callback-set-timeout.ts +0 -93
- package/src/flatbuffers/server-tcpsocket-callback-write.ts +0 -93
- package/src/flatbuffers/server-tcpsocket-event-close.ts +0 -89
- package/src/flatbuffers/server-tcpsocket-event-connect.ts +0 -172
- package/src/flatbuffers/server-tcpsocket-event-connection-attempt-failed.ts +0 -138
- package/src/flatbuffers/server-tcpsocket-event-connection-attempt-timeout.ts +0 -121
- package/src/flatbuffers/server-tcpsocket-event-connection-attempt.ts +0 -121
- package/src/flatbuffers/server-tcpsocket-event-data.ts +0 -113
- package/src/flatbuffers/server-tcpsocket-event-drain.ts +0 -75
- package/src/flatbuffers/server-tcpsocket-event-end.ts +0 -75
- package/src/flatbuffers/server-tcpsocket-event-error.ts +0 -93
- package/src/flatbuffers/server-tcpsocket-event-lookup.ts +0 -141
- package/src/flatbuffers/server-tcpsocket-event-ready.ts +0 -75
- package/src/flatbuffers/server-tcpsocket-event-timeout.ts +0 -75
- package/src/flatbuffers/server-udpsocket-callback-bind.ts +0 -141
- package/src/flatbuffers/server-udpsocket-callback-close.ts +0 -93
- package/src/flatbuffers/server-udpsocket-callback-connect.ts +0 -141
- package/src/flatbuffers/server-udpsocket-callback-send.ts +0 -93
- package/src/flatbuffers/server-udpsocket-event-close.ts +0 -75
- package/src/flatbuffers/server-udpsocket-event-connect.ts +0 -75
- package/src/flatbuffers/server-udpsocket-event-error.ts +0 -93
- package/src/flatbuffers/server-udpsocket-event-listening.ts +0 -124
- package/src/flatbuffers/server-udpsocket-event-message.ts +0 -175
- package/src/net.js +0 -2442
- package/src/test.ts +0 -34
- package/src/types.ts +0 -16
- package/src/utils.ts +0 -45
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocketSetMulticastInterface implements flatbuffers.IUnpackableObject<ClientUDPSocketSetMulticastInterfaceT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocketSetMulticastInterface {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocketSetMulticastInterface(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetMulticastInterface):ClientUDPSocketSetMulticastInterface {
|
|
20
|
-
return (obj || new ClientUDPSocketSetMulticastInterface()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocketSetMulticastInterface(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetMulticastInterface):ClientUDPSocketSetMulticastInterface {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocketSetMulticastInterface()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
multicastInterface():string|null
|
|
34
|
-
multicastInterface(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
35
|
-
multicastInterface(optionalEncoding?:any):string|Uint8Array|null {
|
|
36
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
37
|
-
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
static startClientUDPSocketSetMulticastInterface(builder:flatbuffers.Builder) {
|
|
41
|
-
builder.startObject(2);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
45
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
static addMulticastInterface(builder:flatbuffers.Builder, multicastInterfaceOffset:flatbuffers.Offset) {
|
|
49
|
-
builder.addFieldOffset(1, multicastInterfaceOffset, 0);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
static endClientUDPSocketSetMulticastInterface(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
53
|
-
const offset = builder.endObject();
|
|
54
|
-
return offset;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
static createClientUDPSocketSetMulticastInterface(builder:flatbuffers.Builder, type:ClientPacketType, multicastInterfaceOffset:flatbuffers.Offset):flatbuffers.Offset {
|
|
58
|
-
ClientUDPSocketSetMulticastInterface.startClientUDPSocketSetMulticastInterface(builder);
|
|
59
|
-
ClientUDPSocketSetMulticastInterface.addType(builder, type);
|
|
60
|
-
ClientUDPSocketSetMulticastInterface.addMulticastInterface(builder, multicastInterfaceOffset);
|
|
61
|
-
return ClientUDPSocketSetMulticastInterface.endClientUDPSocketSetMulticastInterface(builder);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
unpack(): ClientUDPSocketSetMulticastInterfaceT {
|
|
65
|
-
return new ClientUDPSocketSetMulticastInterfaceT(
|
|
66
|
-
this.type(),
|
|
67
|
-
this.multicastInterface()
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
unpackTo(_o: ClientUDPSocketSetMulticastInterfaceT): void {
|
|
73
|
-
_o.type = this.type();
|
|
74
|
-
_o.multicastInterface = this.multicastInterface();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export class ClientUDPSocketSetMulticastInterfaceT implements flatbuffers.IGeneratedObject {
|
|
79
|
-
constructor(
|
|
80
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
81
|
-
public multicastInterface: string|Uint8Array|null = null
|
|
82
|
-
){}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
86
|
-
const multicastInterface = (this.multicastInterface !== null ? builder.createString(this.multicastInterface!) : 0);
|
|
87
|
-
|
|
88
|
-
return ClientUDPSocketSetMulticastInterface.createClientUDPSocketSetMulticastInterface(builder,
|
|
89
|
-
this.type,
|
|
90
|
-
multicastInterface
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocketSetMulticastLoopback implements flatbuffers.IUnpackableObject<ClientUDPSocketSetMulticastLoopbackT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocketSetMulticastLoopback {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocketSetMulticastLoopback(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetMulticastLoopback):ClientUDPSocketSetMulticastLoopback {
|
|
20
|
-
return (obj || new ClientUDPSocketSetMulticastLoopback()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocketSetMulticastLoopback(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetMulticastLoopback):ClientUDPSocketSetMulticastLoopback {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocketSetMulticastLoopback()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
flag():boolean {
|
|
34
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
-
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static startClientUDPSocketSetMulticastLoopback(builder:flatbuffers.Builder) {
|
|
39
|
-
builder.startObject(2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
43
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static addFlag(builder:flatbuffers.Builder, flag:boolean) {
|
|
47
|
-
builder.addFieldInt8(1, +flag, +false);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static endClientUDPSocketSetMulticastLoopback(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
51
|
-
const offset = builder.endObject();
|
|
52
|
-
return offset;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static createClientUDPSocketSetMulticastLoopback(builder:flatbuffers.Builder, type:ClientPacketType, flag:boolean):flatbuffers.Offset {
|
|
56
|
-
ClientUDPSocketSetMulticastLoopback.startClientUDPSocketSetMulticastLoopback(builder);
|
|
57
|
-
ClientUDPSocketSetMulticastLoopback.addType(builder, type);
|
|
58
|
-
ClientUDPSocketSetMulticastLoopback.addFlag(builder, flag);
|
|
59
|
-
return ClientUDPSocketSetMulticastLoopback.endClientUDPSocketSetMulticastLoopback(builder);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
unpack(): ClientUDPSocketSetMulticastLoopbackT {
|
|
63
|
-
return new ClientUDPSocketSetMulticastLoopbackT(
|
|
64
|
-
this.type(),
|
|
65
|
-
this.flag()
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
unpackTo(_o: ClientUDPSocketSetMulticastLoopbackT): void {
|
|
71
|
-
_o.type = this.type();
|
|
72
|
-
_o.flag = this.flag();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class ClientUDPSocketSetMulticastLoopbackT implements flatbuffers.IGeneratedObject {
|
|
77
|
-
constructor(
|
|
78
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
79
|
-
public flag: boolean = false
|
|
80
|
-
){}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
84
|
-
return ClientUDPSocketSetMulticastLoopback.createClientUDPSocketSetMulticastLoopback(builder,
|
|
85
|
-
this.type,
|
|
86
|
-
this.flag
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocketSetMulticastTTL implements flatbuffers.IUnpackableObject<ClientUDPSocketSetMulticastTTLT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocketSetMulticastTTL {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocketSetMulticastTTL(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetMulticastTTL):ClientUDPSocketSetMulticastTTL {
|
|
20
|
-
return (obj || new ClientUDPSocketSetMulticastTTL()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocketSetMulticastTTL(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetMulticastTTL):ClientUDPSocketSetMulticastTTL {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocketSetMulticastTTL()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
ttl():number {
|
|
34
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
-
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static startClientUDPSocketSetMulticastTTL(builder:flatbuffers.Builder) {
|
|
39
|
-
builder.startObject(2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
43
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static addTtl(builder:flatbuffers.Builder, ttl:number) {
|
|
47
|
-
builder.addFieldFloat32(1, ttl, 0.0);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static endClientUDPSocketSetMulticastTTL(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
51
|
-
const offset = builder.endObject();
|
|
52
|
-
return offset;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static createClientUDPSocketSetMulticastTTL(builder:flatbuffers.Builder, type:ClientPacketType, ttl:number):flatbuffers.Offset {
|
|
56
|
-
ClientUDPSocketSetMulticastTTL.startClientUDPSocketSetMulticastTTL(builder);
|
|
57
|
-
ClientUDPSocketSetMulticastTTL.addType(builder, type);
|
|
58
|
-
ClientUDPSocketSetMulticastTTL.addTtl(builder, ttl);
|
|
59
|
-
return ClientUDPSocketSetMulticastTTL.endClientUDPSocketSetMulticastTTL(builder);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
unpack(): ClientUDPSocketSetMulticastTTLT {
|
|
63
|
-
return new ClientUDPSocketSetMulticastTTLT(
|
|
64
|
-
this.type(),
|
|
65
|
-
this.ttl()
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
unpackTo(_o: ClientUDPSocketSetMulticastTTLT): void {
|
|
71
|
-
_o.type = this.type();
|
|
72
|
-
_o.ttl = this.ttl();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class ClientUDPSocketSetMulticastTTLT implements flatbuffers.IGeneratedObject {
|
|
77
|
-
constructor(
|
|
78
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
79
|
-
public ttl: number = 0.0
|
|
80
|
-
){}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
84
|
-
return ClientUDPSocketSetMulticastTTL.createClientUDPSocketSetMulticastTTL(builder,
|
|
85
|
-
this.type,
|
|
86
|
-
this.ttl
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocketSetRecvBufferSize implements flatbuffers.IUnpackableObject<ClientUDPSocketSetRecvBufferSizeT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocketSetRecvBufferSize {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocketSetRecvBufferSize(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetRecvBufferSize):ClientUDPSocketSetRecvBufferSize {
|
|
20
|
-
return (obj || new ClientUDPSocketSetRecvBufferSize()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocketSetRecvBufferSize(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetRecvBufferSize):ClientUDPSocketSetRecvBufferSize {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocketSetRecvBufferSize()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
size():number {
|
|
34
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
-
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static startClientUDPSocketSetRecvBufferSize(builder:flatbuffers.Builder) {
|
|
39
|
-
builder.startObject(2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
43
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static addSize(builder:flatbuffers.Builder, size:number) {
|
|
47
|
-
builder.addFieldFloat32(1, size, 0.0);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static endClientUDPSocketSetRecvBufferSize(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
51
|
-
const offset = builder.endObject();
|
|
52
|
-
return offset;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static createClientUDPSocketSetRecvBufferSize(builder:flatbuffers.Builder, type:ClientPacketType, size:number):flatbuffers.Offset {
|
|
56
|
-
ClientUDPSocketSetRecvBufferSize.startClientUDPSocketSetRecvBufferSize(builder);
|
|
57
|
-
ClientUDPSocketSetRecvBufferSize.addType(builder, type);
|
|
58
|
-
ClientUDPSocketSetRecvBufferSize.addSize(builder, size);
|
|
59
|
-
return ClientUDPSocketSetRecvBufferSize.endClientUDPSocketSetRecvBufferSize(builder);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
unpack(): ClientUDPSocketSetRecvBufferSizeT {
|
|
63
|
-
return new ClientUDPSocketSetRecvBufferSizeT(
|
|
64
|
-
this.type(),
|
|
65
|
-
this.size()
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
unpackTo(_o: ClientUDPSocketSetRecvBufferSizeT): void {
|
|
71
|
-
_o.type = this.type();
|
|
72
|
-
_o.size = this.size();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class ClientUDPSocketSetRecvBufferSizeT implements flatbuffers.IGeneratedObject {
|
|
77
|
-
constructor(
|
|
78
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
79
|
-
public size: number = 0.0
|
|
80
|
-
){}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
84
|
-
return ClientUDPSocketSetRecvBufferSize.createClientUDPSocketSetRecvBufferSize(builder,
|
|
85
|
-
this.type,
|
|
86
|
-
this.size
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocketSetSendBufferSize implements flatbuffers.IUnpackableObject<ClientUDPSocketSetSendBufferSizeT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocketSetSendBufferSize {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocketSetSendBufferSize(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetSendBufferSize):ClientUDPSocketSetSendBufferSize {
|
|
20
|
-
return (obj || new ClientUDPSocketSetSendBufferSize()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocketSetSendBufferSize(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetSendBufferSize):ClientUDPSocketSetSendBufferSize {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocketSetSendBufferSize()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
size():number {
|
|
34
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
-
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static startClientUDPSocketSetSendBufferSize(builder:flatbuffers.Builder) {
|
|
39
|
-
builder.startObject(2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
43
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static addSize(builder:flatbuffers.Builder, size:number) {
|
|
47
|
-
builder.addFieldFloat32(1, size, 0.0);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static endClientUDPSocketSetSendBufferSize(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
51
|
-
const offset = builder.endObject();
|
|
52
|
-
return offset;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static createClientUDPSocketSetSendBufferSize(builder:flatbuffers.Builder, type:ClientPacketType, size:number):flatbuffers.Offset {
|
|
56
|
-
ClientUDPSocketSetSendBufferSize.startClientUDPSocketSetSendBufferSize(builder);
|
|
57
|
-
ClientUDPSocketSetSendBufferSize.addType(builder, type);
|
|
58
|
-
ClientUDPSocketSetSendBufferSize.addSize(builder, size);
|
|
59
|
-
return ClientUDPSocketSetSendBufferSize.endClientUDPSocketSetSendBufferSize(builder);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
unpack(): ClientUDPSocketSetSendBufferSizeT {
|
|
63
|
-
return new ClientUDPSocketSetSendBufferSizeT(
|
|
64
|
-
this.type(),
|
|
65
|
-
this.size()
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
unpackTo(_o: ClientUDPSocketSetSendBufferSizeT): void {
|
|
71
|
-
_o.type = this.type();
|
|
72
|
-
_o.size = this.size();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class ClientUDPSocketSetSendBufferSizeT implements flatbuffers.IGeneratedObject {
|
|
77
|
-
constructor(
|
|
78
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
79
|
-
public size: number = 0.0
|
|
80
|
-
){}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
84
|
-
return ClientUDPSocketSetSendBufferSize.createClientUDPSocketSetSendBufferSize(builder,
|
|
85
|
-
this.type,
|
|
86
|
-
this.size
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocketSetTTL implements flatbuffers.IUnpackableObject<ClientUDPSocketSetTTLT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocketSetTTL {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocketSetTTL(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetTTL):ClientUDPSocketSetTTL {
|
|
20
|
-
return (obj || new ClientUDPSocketSetTTL()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocketSetTTL(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocketSetTTL):ClientUDPSocketSetTTL {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocketSetTTL()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
ttl():number {
|
|
34
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
35
|
-
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static startClientUDPSocketSetTTL(builder:flatbuffers.Builder) {
|
|
39
|
-
builder.startObject(2);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
43
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
static addTtl(builder:flatbuffers.Builder, ttl:number) {
|
|
47
|
-
builder.addFieldFloat32(1, ttl, 0.0);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static endClientUDPSocketSetTTL(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
51
|
-
const offset = builder.endObject();
|
|
52
|
-
return offset;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static createClientUDPSocketSetTTL(builder:flatbuffers.Builder, type:ClientPacketType, ttl:number):flatbuffers.Offset {
|
|
56
|
-
ClientUDPSocketSetTTL.startClientUDPSocketSetTTL(builder);
|
|
57
|
-
ClientUDPSocketSetTTL.addType(builder, type);
|
|
58
|
-
ClientUDPSocketSetTTL.addTtl(builder, ttl);
|
|
59
|
-
return ClientUDPSocketSetTTL.endClientUDPSocketSetTTL(builder);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
unpack(): ClientUDPSocketSetTTLT {
|
|
63
|
-
return new ClientUDPSocketSetTTLT(
|
|
64
|
-
this.type(),
|
|
65
|
-
this.ttl()
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
unpackTo(_o: ClientUDPSocketSetTTLT): void {
|
|
71
|
-
_o.type = this.type();
|
|
72
|
-
_o.ttl = this.ttl();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export class ClientUDPSocketSetTTLT implements flatbuffers.IGeneratedObject {
|
|
77
|
-
constructor(
|
|
78
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
79
|
-
public ttl: number = 0.0
|
|
80
|
-
){}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
84
|
-
return ClientUDPSocketSetTTL.createClientUDPSocketSetTTL(builder,
|
|
85
|
-
this.type,
|
|
86
|
-
this.ttl
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
import * as flatbuffers from 'flatbuffers';
|
|
6
|
-
|
|
7
|
-
import { ClientPacketType } from './client-packet-type.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export class ClientUDPSocket implements flatbuffers.IUnpackableObject<ClientUDPSocketT> {
|
|
11
|
-
bb: flatbuffers.ByteBuffer|null = null;
|
|
12
|
-
bb_pos = 0;
|
|
13
|
-
__init(i:number, bb:flatbuffers.ByteBuffer):ClientUDPSocket {
|
|
14
|
-
this.bb_pos = i;
|
|
15
|
-
this.bb = bb;
|
|
16
|
-
return this;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
static getRootAsClientUDPSocket(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocket):ClientUDPSocket {
|
|
20
|
-
return (obj || new ClientUDPSocket()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
static getSizePrefixedRootAsClientUDPSocket(bb:flatbuffers.ByteBuffer, obj?:ClientUDPSocket):ClientUDPSocket {
|
|
24
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
25
|
-
return (obj || new ClientUDPSocket()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
type():ClientPacketType {
|
|
29
|
-
const offset = this.bb!.__offset(this.bb_pos, 4);
|
|
30
|
-
return offset ? this.bb!.readInt8(this.bb_pos + offset) : ClientPacketType.TCPSocket;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
socketType():string|null
|
|
34
|
-
socketType(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
|
|
35
|
-
socketType(optionalEncoding?:any):string|Uint8Array|null {
|
|
36
|
-
const offset = this.bb!.__offset(this.bb_pos, 6);
|
|
37
|
-
return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
reuseAddr():boolean {
|
|
41
|
-
const offset = this.bb!.__offset(this.bb_pos, 8);
|
|
42
|
-
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
ipv6Only():boolean {
|
|
46
|
-
const offset = this.bb!.__offset(this.bb_pos, 10);
|
|
47
|
-
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
recvBufferSize():number {
|
|
51
|
-
const offset = this.bb!.__offset(this.bb_pos, 12);
|
|
52
|
-
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
sendBufferSize():number {
|
|
56
|
-
const offset = this.bb!.__offset(this.bb_pos, 14);
|
|
57
|
-
return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
static startClientUDPSocket(builder:flatbuffers.Builder) {
|
|
61
|
-
builder.startObject(6);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
static addType(builder:flatbuffers.Builder, type:ClientPacketType) {
|
|
65
|
-
builder.addFieldInt8(0, type, ClientPacketType.TCPSocket);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
static addSocketType(builder:flatbuffers.Builder, socketTypeOffset:flatbuffers.Offset) {
|
|
69
|
-
builder.addFieldOffset(1, socketTypeOffset, 0);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
static addReuseAddr(builder:flatbuffers.Builder, reuseAddr:boolean) {
|
|
73
|
-
builder.addFieldInt8(2, +reuseAddr, +false);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
static addIpv6Only(builder:flatbuffers.Builder, ipv6Only:boolean) {
|
|
77
|
-
builder.addFieldInt8(3, +ipv6Only, +false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
static addRecvBufferSize(builder:flatbuffers.Builder, recvBufferSize:number) {
|
|
81
|
-
builder.addFieldFloat32(4, recvBufferSize, 0.0);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
static addSendBufferSize(builder:flatbuffers.Builder, sendBufferSize:number) {
|
|
85
|
-
builder.addFieldFloat32(5, sendBufferSize, 0.0);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
static endClientUDPSocket(builder:flatbuffers.Builder):flatbuffers.Offset {
|
|
89
|
-
const offset = builder.endObject();
|
|
90
|
-
return offset;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
static createClientUDPSocket(builder:flatbuffers.Builder, type:ClientPacketType, socketTypeOffset:flatbuffers.Offset, reuseAddr:boolean, ipv6Only:boolean, recvBufferSize:number, sendBufferSize:number):flatbuffers.Offset {
|
|
94
|
-
ClientUDPSocket.startClientUDPSocket(builder);
|
|
95
|
-
ClientUDPSocket.addType(builder, type);
|
|
96
|
-
ClientUDPSocket.addSocketType(builder, socketTypeOffset);
|
|
97
|
-
ClientUDPSocket.addReuseAddr(builder, reuseAddr);
|
|
98
|
-
ClientUDPSocket.addIpv6Only(builder, ipv6Only);
|
|
99
|
-
ClientUDPSocket.addRecvBufferSize(builder, recvBufferSize);
|
|
100
|
-
ClientUDPSocket.addSendBufferSize(builder, sendBufferSize);
|
|
101
|
-
return ClientUDPSocket.endClientUDPSocket(builder);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
unpack(): ClientUDPSocketT {
|
|
105
|
-
return new ClientUDPSocketT(
|
|
106
|
-
this.type(),
|
|
107
|
-
this.socketType(),
|
|
108
|
-
this.reuseAddr(),
|
|
109
|
-
this.ipv6Only(),
|
|
110
|
-
this.recvBufferSize(),
|
|
111
|
-
this.sendBufferSize()
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
unpackTo(_o: ClientUDPSocketT): void {
|
|
117
|
-
_o.type = this.type();
|
|
118
|
-
_o.socketType = this.socketType();
|
|
119
|
-
_o.reuseAddr = this.reuseAddr();
|
|
120
|
-
_o.ipv6Only = this.ipv6Only();
|
|
121
|
-
_o.recvBufferSize = this.recvBufferSize();
|
|
122
|
-
_o.sendBufferSize = this.sendBufferSize();
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export class ClientUDPSocketT implements flatbuffers.IGeneratedObject {
|
|
127
|
-
constructor(
|
|
128
|
-
public type: ClientPacketType = ClientPacketType.TCPSocket,
|
|
129
|
-
public socketType: string|Uint8Array|null = null,
|
|
130
|
-
public reuseAddr: boolean = false,
|
|
131
|
-
public ipv6Only: boolean = false,
|
|
132
|
-
public recvBufferSize: number = 0.0,
|
|
133
|
-
public sendBufferSize: number = 0.0
|
|
134
|
-
){}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
pack(builder:flatbuffers.Builder): flatbuffers.Offset {
|
|
138
|
-
const socketType = (this.socketType !== null ? builder.createString(this.socketType!) : 0);
|
|
139
|
-
|
|
140
|
-
return ClientUDPSocket.createClientUDPSocket(builder,
|
|
141
|
-
this.type,
|
|
142
|
-
socketType,
|
|
143
|
-
this.reuseAddr,
|
|
144
|
-
this.ipv6Only,
|
|
145
|
-
this.recvBufferSize,
|
|
146
|
-
this.sendBufferSize
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
-
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
4
|
-
|
|
5
|
-
export enum PacketHandshakeType {
|
|
6
|
-
TCPSocket = 0,
|
|
7
|
-
TCPServer = 1,
|
|
8
|
-
UDPSocket = 2
|
|
9
|
-
}
|