no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@971 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-04-24 22:11:42 +00:00
parent accd363994
commit 02585aed87
10 changed files with 147 additions and 33 deletions
+4 -2
View File
@@ -78,7 +78,8 @@ void updatemasterserver(int seconds)
if(seconds>updmaster) // send alive signal to masterserver every hour of uptime
{
s_sprintfd(path)("%sregister.do?action=add", masterpath);
httpgetsend(masterserver, masterbase, path, "actioncubeserver", "ActionCube Server");
s_sprintfd(agent)("ActionCube Server %d", getvar("version"));
httpgetsend(masterserver, masterbase, path, "actioncubeserver", agent);
masterrep[0] = 0;
masterb.data = masterrep;
masterb.dataLength = MAXTRANS-1;
@@ -96,7 +97,8 @@ void checkmasterreply()
uchar *retrieveservers(uchar *buf, int buflen)
{
s_sprintfd(path)("%sretrieve.do?item=list", masterpath);
httpgetsend(masterserver, masterbase, path, "actioncubeserver", "ActionCube Server");
s_sprintfd(agent)("ActionCube Client %d", getvar("version"));
httpgetsend(masterserver, masterbase, path, "actioncubeclient", agent);
ENetBuffer eb;
buf[0] = 0;
eb.data = buf;