@minip2p/react-native 0.8.0 → 0.8.3

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.
@@ -166,7 +166,6 @@ const FfiConverterTypeMdnsOptions = (() => {
166
166
  maxPacketBytes: FfiConverterUInt32.readFromCursor(c),
167
167
  maxAnnouncedAddrs: FfiConverterUInt32.readFromCursor(c),
168
168
  interfaceRefreshMs: FfiConverterUInt64.readFromCursor(c),
169
- socketPollIntervalMs: FfiConverterUInt64.readFromCursor(c),
170
169
  autoDial: FfiConverterBool.readFromCursor(c)
171
170
  };
172
171
  }
@@ -177,11 +176,10 @@ const FfiConverterTypeMdnsOptions = (() => {
177
176
  FfiConverterUInt32.writeIntoCursor(value.maxPacketBytes, c);
178
177
  FfiConverterUInt32.writeIntoCursor(value.maxAnnouncedAddrs, c);
179
178
  FfiConverterUInt64.writeIntoCursor(value.interfaceRefreshMs, c);
180
- FfiConverterUInt64.writeIntoCursor(value.socketPollIntervalMs, c);
181
179
  FfiConverterBool.writeIntoCursor(value.autoDial, c);
182
180
  }
183
181
  allocationSize(value) {
184
- return FfiConverterBool.allocationSize(value.enableIpv6) + FfiConverterUInt64.allocationSize(value.ttlMs) + FfiConverterUInt64.allocationSize(value.queryIntervalMs) + FfiConverterUInt32.allocationSize(value.maxPacketBytes) + FfiConverterUInt32.allocationSize(value.maxAnnouncedAddrs) + FfiConverterUInt64.allocationSize(value.interfaceRefreshMs) + FfiConverterUInt64.allocationSize(value.socketPollIntervalMs) + FfiConverterBool.allocationSize(value.autoDial);
182
+ return FfiConverterBool.allocationSize(value.enableIpv6) + FfiConverterUInt64.allocationSize(value.ttlMs) + FfiConverterUInt64.allocationSize(value.queryIntervalMs) + FfiConverterUInt32.allocationSize(value.maxPacketBytes) + FfiConverterUInt32.allocationSize(value.maxAnnouncedAddrs) + FfiConverterUInt64.allocationSize(value.interfaceRefreshMs) + FfiConverterBool.allocationSize(value.autoDial);
185
183
  }
186
184
  }
187
185
  ;
@@ -2146,7 +2144,8 @@ export const P2pEvent = (() => {
2146
2144
  }
2147
2145
  }
2148
2146
  /**
2149
- * One hole-punch window failed.
2147
+ * One DCUtR hole-punch round failed; the relay holder may start the
2148
+ * next one.
2150
2149
  */
2151
2150
  class HolePunchFailed_ extends UniffiEnum {
2152
2151
  /**
@@ -2533,16 +2532,19 @@ const FfiConverterTypeP2pEvent = (() => {
2533
2532
  case 7:
2534
2533
  return new P2pEvent.IdentifyReceived({
2535
2534
  peerId: FfiConverterString.readFromCursor(c),
2535
+ connId: FfiConverterUInt64.readFromCursor(c),
2536
2536
  info: FfiConverterTypeIdentifyInfo.readFromCursor(c)
2537
2537
  });
2538
2538
  case 8:
2539
2539
  return new P2pEvent.PingRttMeasured({
2540
2540
  peerId: FfiConverterString.readFromCursor(c),
2541
+ connId: FfiConverterUInt64.readFromCursor(c),
2541
2542
  rttMs: FfiConverterUInt64.readFromCursor(c)
2542
2543
  });
2543
2544
  case 9:
2544
2545
  return new P2pEvent.PingTimeout({
2545
- peerId: FfiConverterString.readFromCursor(c)
2546
+ peerId: FfiConverterString.readFromCursor(c),
2547
+ connId: FfiConverterUInt64.readFromCursor(c)
2546
2548
  });
2547
2549
  case 10:
2548
2550
  return new P2pEvent.StreamReady({
@@ -2621,14 +2623,17 @@ const FfiConverterTypeP2pEvent = (() => {
2621
2623
  case 22:
2622
2624
  return new P2pEvent.InboundPathEstablished({
2623
2625
  peerId: FfiConverterString.readFromCursor(c),
2624
- path: FfiConverterTypePathKind.readFromCursor(c)
2626
+ path: FfiConverterTypePathKind.readFromCursor(c),
2627
+ connId: FfiConverterUInt64.readFromCursor(c)
2625
2628
  });
2626
2629
  case 23:
2627
2630
  return new P2pEvent.PathUpgraded({
2628
2631
  connectId: FfiConverterUInt64.readFromCursor(c),
2629
2632
  peerId: FfiConverterString.readFromCursor(c),
2630
2633
  from: FfiConverterTypePathKind.readFromCursor(c),
2631
- to: FfiConverterTypePathKind.readFromCursor(c)
2634
+ to: FfiConverterTypePathKind.readFromCursor(c),
2635
+ oldConnId: FfiConverterUInt64.readFromCursor(c),
2636
+ newConnId: FfiConverterUInt64.readFromCursor(c)
2632
2637
  });
2633
2638
  case 24:
2634
2639
  return new P2pEvent.HolePunchFailed({
@@ -2650,7 +2655,9 @@ const FfiConverterTypeP2pEvent = (() => {
2650
2655
  });
2651
2656
  case 27:
2652
2657
  return new P2pEvent.InboundDirectUpgrade({
2653
- peerId: FfiConverterString.readFromCursor(c)
2658
+ peerId: FfiConverterString.readFromCursor(c),
2659
+ oldConnId: FfiConverterUInt64.readFromCursor(c),
2660
+ newConnId: FfiConverterUInt64.readFromCursor(c)
2654
2661
  });
2655
2662
  case 28:
2656
2663
  return new P2pEvent.Message({
@@ -2770,6 +2777,7 @@ const FfiConverterTypeP2pEvent = (() => {
2770
2777
  c.writeI32(7);
2771
2778
  const inner = value.inner;
2772
2779
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2780
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2773
2781
  FfiConverterTypeIdentifyInfo.writeIntoCursor(inner.info, c);
2774
2782
  return;
2775
2783
  }
@@ -2778,6 +2786,7 @@ const FfiConverterTypeP2pEvent = (() => {
2778
2786
  c.writeI32(8);
2779
2787
  const inner = value.inner;
2780
2788
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2789
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2781
2790
  FfiConverterUInt64.writeIntoCursor(inner.rttMs, c);
2782
2791
  return;
2783
2792
  }
@@ -2786,6 +2795,7 @@ const FfiConverterTypeP2pEvent = (() => {
2786
2795
  c.writeI32(9);
2787
2796
  const inner = value.inner;
2788
2797
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2798
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2789
2799
  return;
2790
2800
  }
2791
2801
  case P2pEvent_Tags.StreamReady:
@@ -2904,6 +2914,7 @@ const FfiConverterTypeP2pEvent = (() => {
2904
2914
  const inner = value.inner;
2905
2915
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2906
2916
  FfiConverterTypePathKind.writeIntoCursor(inner.path, c);
2917
+ FfiConverterUInt64.writeIntoCursor(inner.connId, c);
2907
2918
  return;
2908
2919
  }
2909
2920
  case P2pEvent_Tags.PathUpgraded:
@@ -2914,6 +2925,8 @@ const FfiConverterTypeP2pEvent = (() => {
2914
2925
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2915
2926
  FfiConverterTypePathKind.writeIntoCursor(inner.from, c);
2916
2927
  FfiConverterTypePathKind.writeIntoCursor(inner.to, c);
2928
+ FfiConverterUInt64.writeIntoCursor(inner.oldConnId, c);
2929
+ FfiConverterUInt64.writeIntoCursor(inner.newConnId, c);
2917
2930
  return;
2918
2931
  }
2919
2932
  case P2pEvent_Tags.HolePunchFailed:
@@ -2948,6 +2961,8 @@ const FfiConverterTypeP2pEvent = (() => {
2948
2961
  c.writeI32(27);
2949
2962
  const inner = value.inner;
2950
2963
  FfiConverterString.writeIntoCursor(inner.peerId, c);
2964
+ FfiConverterUInt64.writeIntoCursor(inner.oldConnId, c);
2965
+ FfiConverterUInt64.writeIntoCursor(inner.newConnId, c);
2951
2966
  return;
2952
2967
  }
2953
2968
  case P2pEvent_Tags.Message:
@@ -3099,6 +3114,7 @@ const FfiConverterTypeP2pEvent = (() => {
3099
3114
  const inner = value.inner;
3100
3115
  let size = 4;
3101
3116
  size += FfiConverterString.allocationSize(inner.peerId);
3117
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3102
3118
  size += FfiConverterTypeIdentifyInfo.allocationSize(inner.info);
3103
3119
  return size;
3104
3120
  }
@@ -3107,6 +3123,7 @@ const FfiConverterTypeP2pEvent = (() => {
3107
3123
  const inner = value.inner;
3108
3124
  let size = 4;
3109
3125
  size += FfiConverterString.allocationSize(inner.peerId);
3126
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3110
3127
  size += FfiConverterUInt64.allocationSize(inner.rttMs);
3111
3128
  return size;
3112
3129
  }
@@ -3115,6 +3132,7 @@ const FfiConverterTypeP2pEvent = (() => {
3115
3132
  const inner = value.inner;
3116
3133
  let size = 4;
3117
3134
  size += FfiConverterString.allocationSize(inner.peerId);
3135
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3118
3136
  return size;
3119
3137
  }
3120
3138
  case P2pEvent_Tags.StreamReady:
@@ -3233,6 +3251,7 @@ const FfiConverterTypeP2pEvent = (() => {
3233
3251
  let size = 4;
3234
3252
  size += FfiConverterString.allocationSize(inner.peerId);
3235
3253
  size += FfiConverterTypePathKind.allocationSize(inner.path);
3254
+ size += FfiConverterUInt64.allocationSize(inner.connId);
3236
3255
  return size;
3237
3256
  }
3238
3257
  case P2pEvent_Tags.PathUpgraded:
@@ -3243,6 +3262,8 @@ const FfiConverterTypeP2pEvent = (() => {
3243
3262
  size += FfiConverterString.allocationSize(inner.peerId);
3244
3263
  size += FfiConverterTypePathKind.allocationSize(inner.from);
3245
3264
  size += FfiConverterTypePathKind.allocationSize(inner.to);
3265
+ size += FfiConverterUInt64.allocationSize(inner.oldConnId);
3266
+ size += FfiConverterUInt64.allocationSize(inner.newConnId);
3246
3267
  return size;
3247
3268
  }
3248
3269
  case P2pEvent_Tags.HolePunchFailed:
@@ -3277,6 +3298,8 @@ const FfiConverterTypeP2pEvent = (() => {
3277
3298
  const inner = value.inner;
3278
3299
  let size = 4;
3279
3300
  size += FfiConverterString.allocationSize(inner.peerId);
3301
+ size += FfiConverterUInt64.allocationSize(inner.oldConnId);
3302
+ size += FfiConverterUInt64.allocationSize(inner.newConnId);
3280
3303
  return size;
3281
3304
  }
3282
3305
  case P2pEvent_Tags.Message: