summaryrefslogtreecommitdiff
path: root/storage/ndb/src/cw/cpcc-win32/csharp/socketcomm/myTcpClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'storage/ndb/src/cw/cpcc-win32/csharp/socketcomm/myTcpClient.cs')
-rw-r--r--storage/ndb/src/cw/cpcc-win32/csharp/socketcomm/myTcpClient.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/storage/ndb/src/cw/cpcc-win32/csharp/socketcomm/myTcpClient.cs b/storage/ndb/src/cw/cpcc-win32/csharp/socketcomm/myTcpClient.cs
new file mode 100644
index 00000000000..9c0d82a0b27
--- /dev/null
+++ b/storage/ndb/src/cw/cpcc-win32/csharp/socketcomm/myTcpClient.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Net;
+using System.Net.Sockets;
+using System.Text;
+using System.Threading;
+using System.IO;
+
+
+namespace NDB_CPC.socketcomm
+{
+ public class myTcpClient : TcpClient
+ {
+ private Socket s;
+ public myTcpClient(): base()
+ {
+ if(this.Active)
+ {
+ s = this.Client;
+ }
+ }
+ public Socket GetUnderlyingSocket()
+ {
+ return s;
+ }
+ }
+}