www.pudn.com > sharewindows.rar > Nblh_Link_Base.cs, change:2016-01-07,size:1561b


´╗┐using NBLH_LINK.Common; 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Net; 
using System.Net.Sockets; 
using System.Text; 
using System.Threading; 
using System.Threading.Tasks; 
 
namespace NBLH_LINK 
{ 
    public enum STATUS_TYPE 
    { 
        START, STOP, PAUSE, RESTART, NONE 
    } 
    public class Buffer 
    { 
        // Receive buffer.      
        public byte[] buffer = new byte[Nblh_Link_Common_Config.BufferSize]; 
        // Index 
        public int index; 
        // Receive buffer length 
        public int length; 
    } 
    public class Nblh_Link_Base:INblh_Link_Base_Object 
    { 
        STATUS_TYPE m_statusType = STATUS_TYPE.NONE;      
        protected Socket m_socket=null; 
        public STATUS_TYPE StatusType 
        { 
            get { return m_statusType; } 
            set { 
                Monitor.Enter(this); 
                m_statusType = value; 
                Monitor.Exit(this); 
            } 
        } 
 
        public virtual void Func_Link_Init(string ip, int port) 
        { 
 
        } 
        public virtual void Func_Link_Init(IPAddress ipaddress, int port) 
        { 
 
        } 
        public virtual void Func_Link_Init(string ip) 
        { 
 
        } 
        public virtual void Func_Link_Init(int port) 
        { 
 
        } 
        public virtual void Func_Link_Free() 
        { 
             
        } 
        public virtual void Func_Link_SendData(byte[] buffer,int index, int length) 
        { 
 
        } 
         
    } 
}