Raknet 简单封装 For Delphi
来源:互联网 发布:子不语怪力乱神 知乎 编辑:程序博客网 时间:2024/06/16 16:51
具体代码在 : http://download.csdn.net/detail/warrially/6414989 有兴趣的可以看看.
第二版 http://download.csdn.net/detail/warrially/6534653
interface DECLSPEC_UUID("4352F36E-5A07-4B9B-8D03-E0254584AC48")IRaknetClient : public IUnknown{public:virtual char* __stdcall GetIpAddress() = NULL;virtual void __stdcall SetIpAddress(char* lpszMsg) = NULL;virtual int __stdcall GetPort() = NULL;virtual void __stdcall SetPort(int nValue) = NULL;virtual int __stdcall GetMaxConnect() = NULL;virtual void __stdcall SetMaxConnect(int nValue) = NULL;virtual bool __stdcall RnOpen() = NULL;virtual bool __stdcall RnClose() = NULL;virtual bool __stdcall UdpRead(TRnUdpCallback OnUdpCallback) = NULL;virtual int __stdcall UdpSend(const char* szBuf,int nLen) = NULL;};
type IRaknetClient = interface ['{4352F36E-5A07-4B9B-8D03-E0254584AC48}'] function GetIpAddress : PAnsiChar; stdcall; procedure SetIpAddress(AValue : PAnsiChar); stdcall; function GetPort : Integer; stdcall; procedure SetPort(AValue : Integer); stdcall; function GetMaxConnect : Integer; stdcall; procedure SetMaxConnect(AValue : Integer); stdcall; function RnOpen() : Boolean; stdcall; function RnClose() : Boolean; stdcall; function UdpRead(OnUdpCallback : TRnUdpCallback) : Boolean; stdcall; function UdpSend(const szBuf : PAnsiChar; nLen : Integer) : Integer; stdcall; property IpAddress : PAnsiChar read GetIpAddress write SetIpAddress; property Port : Integer read GetPort write SetPort; property MaxConnect : Integer read GetMaxConnect write SetMaxConnect; end;
interface DECLSPEC_UUID("0EA920B3-0404-4B4D-A5AD-D61460166532")IRaknetServer : public IUnknown{public:virtual char* __stdcall GetIpAddress() = NULL;virtual void __stdcall SetIpAddress(char* lpszMsg) = NULL;virtual int __stdcall GetPort() = NULL;virtual void __stdcall SetPort(int nValue) = NULL;virtual int __stdcall GetMaxConnect() = NULL;virtual void __stdcall SetMaxConnect(int nValue) = NULL;virtual int __stdcall GetMaxIncoming() = NULL;virtual void __stdcall SetMaxIncoming(int nValue) = NULL;virtual bool __stdcall RnOpen() = NULL;virtual bool __stdcall RnClose() = NULL;virtual bool __stdcall UdpRead(TRnUdpCallback OnUdpCallback) = NULL;};
type IRaknetServer = interface ['{0EA920B3-0404-4B4D-A5AD-D61460166532}'] function GetIpAddress : PAnsiChar; stdcall; procedure SetIpAddress(AValue : PAnsiChar); stdcall; function GetPort : Integer; stdcall; procedure SetPort(AValue : Integer); stdcall; function GetMaxConnect : Integer; stdcall; procedure SetMaxConnect(AValue : Integer); stdcall; function GetMaxIncoming : Integer; stdcall; procedure SetMaxIncoming(AValue : Integer); stdcall; function RnOpen() : Boolean; stdcall; function RnClose() : Boolean; stdcall; function UdpRead(OnUdpCallback : TRnUdpCallback) : Boolean; stdcall; property IpAddress : PAnsiChar read GetIpAddress write SetIpAddress; property Port : Integer read GetPort write SetPort; property MaxConnect : Integer read GetMaxConnect write SetMaxConnect; property MaxIncoming : Integer read GetMaxIncoming write SetMaxIncoming; end;
- Raknet 简单封装 For Delphi
- Raknet For Unity
- 简单封装 Delphi 的 DirectX类
- 简单封装 Delphi 的 DirectX类 (续)
- RakNet网络框架简单入门
- RakNet
- 制作简单的 COM 范例 (for Delphi)
- Delphi - 我的代码之简单封装WinHttpRequest
- RakNet最简单的服务器客户端程序
- Raknet入门简单实例分析(1)
- Delphi 封装窗体封装DLL
- 一日一点RakNet(42)--Lobby2Client-Games for Windows Live
- raknet for unity3d手机版的编译方法
- RakNet学习(41) -- Lobby2Client-Games for Windows Live
- raknet for unity3d手机版的编译方法
- delphiASIO_mmzmagic (本库是Boost ASIO for delphi的高效率稳定封装通讯框架)
- delphi中的封装问题
- Delphi dll窗体封装
- cookie 的使用
- 图片懒加载技术
- shell把输出保持到变量中
- JavaScript第二课-表单及两种数据提交方式
- 项目管理2-研发人员请对“非常规”沟通说不
- Raknet 简单封装 For Delphi
- c# winform 用鼠标滚轮控制图片大小,获取鼠标中键滚轮事件,MouseWheel事件
- Linux的进程通信(IPC)
- 内省—beanutils工具包 的应用
- 利用堆栈窗口定位错误
- vc模拟鼠标键盘操作实用类
- nefu117素数定理
- Codeforces Round #207 (Div. 1)(A,B,C)
- 接口、Object类(toString(), equals(), hashCode())