1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Runtime.InteropServices;
- public class Mnet
- {
-
- [DllImport("HAASDLL.dll", EntryPoint = "ConnetDevie")]
- public static extern bool ConnetDevie(string ip, UInt16 port);
-
- [DllImport("HAASDLL.dll", EntryPoint = "Revc")]
- public static extern int Revc(IntPtr pbuf, int len, int timeOut);
-
- [DllImport("HAASDLL.dll", EntryPoint = "Send")]
- public static extern int Send(string pbuf, int len, int timeOut);
- [DllImport("HAASDLL.dll", EntryPoint = "Close")]
- public static extern void Close();
- }
|