主题 : [出售]kailleraclient.dll 源代码!懂得进来看看!
级别: 模拟小生
UID: 124223
精华: 0
发帖: 4
威望: 0 星
金钱: 2560 浮游币
贡献值: 0 点
好评度: 3 点
人气: 0 点
在线时间: 0(时)
注册时间: 2006-06-05
最后登录: 2006-07-09
楼主  发表于: 2006-07-09 08:18

[出售]kailleraclient.dll 源代码!懂得进来看看!

源代码整体文件的抓图如下:






其中一个文件中的源代码演示:

#ifndef __client_h__
#define __client_h__

#include <list>

#ifdef WIN32
#define STDCALL __stdcall
#else
#define STDCALL
#endif

typedef struct {
  char *appName;
  char *gameList;

  int (STDCALL *gameCallback)(char *game, int player, int numplayers);

  void (STDCALL *chatReceivedCallback)(char *nick, char *text);
  void (STDCALL *clientDroppedCallback)(char *nick, int playernb);

  void (STDCALL *moreInfosCallback)(char *gamename);
} kailleraInfo;

struct kailleraGameInfo{
char   name[64];
char   client[64];
char   owner[64];
char   userInfo[16];
int   id;
int   status;
};

struct kailleraUserInfo{
char   name[64];
int   id;
int   ping;
int   connType;
int   status;
};

struct kailleraServerInfo
{
char name[64];
char location[64];
char address[64];
char version[8];
char limit[8];
char games[8];
};

typedef std::list<kailleraGameInfo> GameInfoList;
typedef std::list<kailleraUserInfo> UserInfoList;
typedef std::list<kailleraServerInfo> ServerInfoList;

#define MSG_CODE(buff) ((unsigned char)buff[4])
#define MSG_SHORT(buff,pos) ((((int)((unsigned char)buff[pos+1])) << 8) + ((int)((unsigned char)buff[pos])))
#define MSG_INT(buff,pos) MSG_SHORT(buff,pos)
#define MSG_SERIAL(buff) MSG_SHORT(buff, 0)
#define MSG_LENGTH(buff) MSG_SHORT(buff, 2)


int CL_Init();
int CL_Shutdown();
int CL_Connect(const char *nickName, const char *address, int connType);
int CL_Disconnect();
int CL_Send(int code, const char *data, int dataLen);
int CL_SendV(int code, const char *fmt, ...);
int CL_Recv(void *buff, int len, int timeout = -1, int ms = 0);
int CL_QueueInput(void *buff, int len);
int CL_HasMore();
int CL_Dispatch(const void *buff, int len);
int CL_ChatSend(const char *text);
int CL_InGameChatSend(const char *text);
int CL_NewGame(const char *game);
int CL_JoinGame(int gameId);
int CL_LeaveGame();
int CL_Run();
int CL_QuitGame();
int CL_KeepAlive();
int CL_MessagePump();
int CL_GetSocketFD();
int CL_SetInfo(kailleraInfo *infos);
int CL_ModifyPlayValues(void *values, int size);
int CL_GetUserId();
const GameInfoList& CL_GetGameInfoList();
const UserInfoList& CL_GetUserInfoList();

int CL_ConnectStep0(const char *address);
int CL_ConnectStep1();
int CL_ConnectStep2(const char *nickName, int connType);
int CL_ConnectAck();
int CL_ConnectFinal();
int CL_GetConnSockFD();

int CL_QueryKaillera(ServerInfoList& svl);
const char *CL_GetError();

#endif

-----------------------------------------------------------
如果你了解kailleraclient.dll 多大用处的话 我想就不用我多说了!
级别: 模拟之星
UID: 17726
精华: 0
发帖: 2664
威望: 0 星
金钱: 2638 浮游币
贡献值: 0 点
好评度: 5506 点
人气: 0 点
在线时间: 695(时)
注册时间: 2005-02-16
最后登录: 2011-09-13
沙发  发表于: 2006-07-09 18:15

不知道这是干什么用的。
不过语言好象是C++。
写的不错,精神上支持一下!
虽然你我今生无缘,但我希望在来生再遇见你,即使那时你我已经忘了一切。



YZB
无广告位,看帖子签名
级别: 超级版主

UID: 12451
精华: 6
发帖: 19025
威望: 173 星
金钱: 113 浮游币
贡献值: 9867 点
好评度: 54663 点
人气: 4322 点
在线时间: 18850(时)
注册时间: 2004-10-02
最后登录: 2024-05-21
板凳  发表于: 2006-07-18 11:21

这种东西要怎么卖啊?????

说起来我也有一些呢`
级别: 模拟小生
UID: 19156
精华: 0
发帖: 60
威望: 0 星
金钱: 2618 浮游币
贡献值: 9 点
好评度: 111 点
人气: 0 点
在线时间: 4(时)
注册时间: 2005-03-19
最后登录: 2022-07-16
地板  发表于: 2006-07-29 01:03

这玩意你卖给浩方算了。