Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Fragments.cs
1
using
System;
2
using
System.Collections.Generic;
3
using
System.IO;
4
using
System.Net;
5
6
namespace
Waher.Networking.Cluster
7
{
8
internal
class
Fragments
9
{
10
public
SortedDictionary<int, byte[]> Parts =
new
SortedDictionary<int, byte[]>();
11
public
IPEndPoint Source;
12
public
long
Timestamp;
13
public
int
? NrParts =
null
;
14
public
bool
Done =
false
;
15
16
internal
byte
[] ToByteArray()
17
{
18
using
(MemoryStream ms =
new
MemoryStream())
19
{
20
foreach
(
byte
[] Part
in
Parts.Values)
21
ms.Write(Part, 0, Part.Length);
22
23
return
ms.ToArray();
24
}
25
}
26
}
27
}
Waher.Networking.Cluster
Definition:
Program.cs:9
IoTGateway
Networking
Waher.Networking.Cluster
Fragments.cs
Generated by
1.9.5