Posted on: 8/13/2014 1:41:21 AM | Views : 401

TcpSocket
-------------------
using System; using System.Net; using System.Net.Sockets; using System.Reflection; using System.Text; using MtlCommon; using System.Collections; namespace Communication { public class TcpSocket { #region Events public delegate void SocketConnectHandler( SockState state ); public event SocketConnectHandler OnConnect; public delegate void SocketDataArrivalHandler( SockState state ); public event SocketDataArrivalHandler OnDataArrival; public delegate void SocketSendCompleteHandler( int bytesSent ); public event SocketSendCompleteHandler OnSendComplete; public delegate void SocketErrorHandler( string error ); public event SocketErrorHandler OnError; public delegate void SocketAcceptHandler( SockState state ); public event SocketAcceptHandler OnAccept; public event SocketConnectHan ...

Go to the complete details ...