Beispiel #1
0
 public static IChannel Create(bool usePrefixLength, string hostname, int port, IPEndPoint localEP,
                               string pskIdentity, byte[] psk, int blockSize = 0x4000, int maxBufferSize = 0x400000,
                               CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, hostname, port, localEP, pskIdentity, psk, blockSize,
                              maxBufferSize, token));
 }
Beispiel #2
0
 public static IChannel Create(bool usePrefixLength, IPEndPoint remoteEndpoint, IPEndPoint localEP,
                               X509Certificate2 certificate, int blockSize = 0x4000, int maxBufferSize = 0x400000,
                               CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, remoteEndpoint, localEP, certificate, blockSize, maxBufferSize,
                              token));
 }
Beispiel #3
0
 public static IChannel Create(bool usePrefixLength, string hostname, int port, X509Certificate2 certificate,
                               int blockSize = 0x4000, int maxBufferSize = 0x400000, CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, hostname, port, certificate, blockSize, maxBufferSize, token));
 }
Beispiel #4
0
 public static IChannel Create(bool usePrefixLength, IPAddress address, int port, IPEndPoint localEP,
                               int blockSize = 0x4000, int maxBufferSize = 0x400000, CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, address, port, localEP, blockSize, maxBufferSize, token));
 }
Beispiel #5
0
 public static IChannel Create(bool usePrefixLength, TcpClient client, TlsPskIdentityManager pskManager,
                               int blockSize = 0x4000, int maxBufferSize = 0x400000, CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, client, pskManager, blockSize, maxBufferSize, token));
 }
Beispiel #6
0
 public static IChannel Create(bool usePrefixLength, TcpClient client, X509Certificate2 certificate,
                               bool clientAuth, int blockSize = 0x4000, int maxBufferSize = 0x400000, CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, client, certificate, clientAuth, blockSize, maxBufferSize, token));
 }
Beispiel #7
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, IPEndPoint remoteEndpoint, IPEndPoint localEP, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, remoteEndpoint, localEP, blockSize, maxBufferSize, token));
 }
Beispiel #8
0
 public static IChannel Create(bool usePrefixLength, IPAddress address, int port, string pskIdentity, byte[] psk,
                               int blockSize = 0x4000, int maxBufferSize = 0x400000, CancellationToken token = default)
 {
     return(TcpChannel.Create(usePrefixLength, address, port, pskIdentity, psk, blockSize, maxBufferSize, token));
 }
Beispiel #9
0
 /// <summary>
 /// Creates TCP server channel
 /// </summary>
 /// <param name="client"></param>
 /// <param name="token"></param>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, TcpClient client, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, client, blockSize, maxBufferSize, token));
 }
Beispiel #10
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, string hostname, int port, IPEndPoint localEP, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, hostname, port, localEP, blockSize, maxBufferSize, token));
 }
Beispiel #11
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <param name="usePrefixLength"></param>
 /// <param name="remoteEP"></param>
 /// <param name="pskIdentity"></param>
 /// <param name="psk"></param>
 /// <param name="blockSize"></param>
 /// <param name="maxBufferSize"></param>
 /// <param name="token"></param>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, IPEndPoint remoteEP, string pskIdentity, byte[] psk, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, remoteEP, pskIdentity, psk, blockSize, maxBufferSize, token));
 }
Beispiel #12
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <param name="usePrefixLength"></param>
 /// <param name="hostname"></param>
 /// <param name="port"></param>
 /// <param name="pskIdentity"></param>
 /// <param name="psk"></param>
 /// <param name="blockSize"></param>
 /// <param name="maxBufferSize"></param>
 /// <param name="token"></param>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, string hostname, int port, string pskIdentity, byte[] psk, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, hostname, port, pskIdentity, psk, blockSize, maxBufferSize, token));
 }
Beispiel #13
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <param name="usePrefixLength"></param>
 /// <param name="address"></param>
 /// <param name="port"></param>
 /// <param name="localEP"></param>
 /// <param name="pskIdentity"></param>
 /// <param name="psk"></param>
 /// <param name="blockSize"></param>
 /// <param name="maxBufferSize"></param>
 /// <param name="token"></param>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, IPAddress address, int port, IPEndPoint localEP, string pskIdentity, byte[] psk, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, address, port, localEP, pskIdentity, psk, blockSize, maxBufferSize, token));
 }
Beispiel #14
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, IPAddress address, int port, IPEndPoint localEP, X509Certificate2 certificate, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, address, port, localEP, certificate, blockSize, maxBufferSize, token));
 }
Beispiel #15
0
 /// <summary>
 /// Creates TCP client channel
 /// </summary>
 /// <returns></returns>
 public static IChannel Create(bool usePrefixLength, IPAddress address, int port, int blockSize, int maxBufferSize, CancellationToken token)
 {
     return(TcpChannel.Create(usePrefixLength, address, port, blockSize, maxBufferSize, token));
 }