Network protocol versioning.
Beispiel #1
0
 public static Message ReadNext(Stream stream, Network network, ProtocolVersion version, CancellationToken cancellationToken, out PerformanceCounter counter)
 {
     return(ReadNext(stream, network, version, cancellationToken, null, out counter));
 }
Beispiel #2
0
        public static Message ReadNext(Socket socket, Network network, ProtocolVersion version, CancellationToken cancellationToken)
        {
            PerformanceCounter counter;

            return(ReadNext(socket, network, version, cancellationToken, out counter));
        }
Beispiel #3
0
        public static Message ReadNext(Socket socket, Network network, ProtocolVersion version, CancellationToken cancellationToken, byte[] buffer, out PerformanceCounter counter)
        {
            var stream = new NetworkStream(socket, false);

            return(ReadNext(stream, network, version, cancellationToken, buffer, out counter));
        }
Beispiel #4
0
 public void UpdateSignature(Key key, ProtocolVersion version = ProtocolVersion.PROTOCOL_VERSION)
 {
     UpdatePayload();
     signature = new VarString(key.Sign(Hashes.Hash256(payload.GetString())).ToDER());
 }