summary refs log tree commit diff
path: root/crypto/src/tls/DtlsTransport.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-11-05 21:06:39 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-11-05 21:06:39 +0700
commit53a4b3d54e618e62f61c2ca72f56a9088c430135 (patch)
tree5560a2a0b3b2872d1434b17017419d598995a049 /crypto/src/tls/DtlsTransport.cs
parentMerge branch 'Optimize-structures' of github.com:harrison314/bc-csharp (diff)
downloadBouncyCastle.NET-ed25519-53a4b3d54e618e62f61c2ca72f56a9088c430135.tar.xz
Preprocessor symbol cleanup
Diffstat (limited to '')
-rw-r--r--crypto/src/tls/DtlsTransport.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/src/tls/DtlsTransport.cs b/crypto/src/tls/DtlsTransport.cs
index a41cb7866..1a6ec131f 100644
--- a/crypto/src/tls/DtlsTransport.cs
+++ b/crypto/src/tls/DtlsTransport.cs
@@ -1,8 +1,6 @@
 using System;
 using System.IO;
-#if !PORTABLE || DOTNET
 using System.Net.Sockets;
-#endif
 
 namespace Org.BouncyCastle.Tls
 {
@@ -53,7 +51,6 @@ namespace Org.BouncyCastle.Tls
             {
                 throw e;
             }
-#if !PORTABLE || DOTNET
             catch (SocketException e)
             {
                 if (TlsUtilities.IsTimeout(e))
@@ -62,7 +59,6 @@ namespace Org.BouncyCastle.Tls
                 m_recordLayer.Fail(AlertDescription.internal_error);
                 throw new TlsFatalAlert(AlertDescription.internal_error, e);
             }
-#endif
             // TODO[tls-port] Can we support interrupted IO on .NET?
             //catch (InterruptedIOException e)
             //{
@@ -103,7 +99,6 @@ namespace Org.BouncyCastle.Tls
             {
                 throw e;
             }
-#if !PORTABLE || DOTNET
             catch (SocketException e)
             {
                 if (TlsUtilities.IsTimeout(e))
@@ -112,7 +107,6 @@ namespace Org.BouncyCastle.Tls
                 m_recordLayer.Fail(AlertDescription.internal_error);
                 throw new TlsFatalAlert(AlertDescription.internal_error, e);
             }
-#endif
             // TODO[tls-port] Can we support interrupted IO on .NET?
             //catch (InterruptedIOException e)
             //{