2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: adoado]
#205110
05/04/08 03:02
05/04/08 03:02
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
you have to register an event with GSTNet_Events(GSTNet_EventFunction,funcname) and send the message in this event function from server to the defined client. that's wrong in the manual. see demo //------------------------------------------------------------------
// function for event: GSTNet_EventFunction
// input: vTyp : event-id
// sMsg: data
// vSender: sender client id
// vReceiver: receiver id
//------------------------------------------------------------------
function evFunction(vTyp, sMsg, vSender, vReceiver)
{
diag("\nType:"); str_for_num(sGSTNetTemp, vTyp); diag(sGSTNetTemp);
diag("\nSender:"); str_for_num(sGSTNetTemp, vSender); diag(sGSTNetTemp);
diag("\nReceiver:"); str_for_num(sGSTNetTemp, vReceiver); diag(sGSTNetTemp);
GSTNet_ServerSend(vReceiver, vTyp, sMsg);
if(GSTNet_Connection() == 2 || GSTNet_Connection() == 3 ) {
Parse_Function(sMsg); // parse and execute ...
}
} i have to overwork some function because automatic sending infos from clients to other clients by the server without checking by the server is really insecure, because GSTNet.dll can be used to connect to any GSTNet-server
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: adoado]
#205857
05/09/08 07:15
05/09/08 07:15
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
good find, i will fix this
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: nfs42]
#205859
05/09/08 07:35
05/09/08 07:35
|
Joined: Jul 2006
Posts: 503 Australia
adoado
OP
User
|
OP
User
Joined: Jul 2006
Posts: 503
Australia
|
Thankyou so much! You would not believe how much that would help my project atm :P Just wondering, when will the fix be released? Thanks again, Adoado
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: adoado]
#205870
05/09/08 09:29
05/09/08 09:29
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: adoado]
#206067
05/11/08 00:22
05/11/08 00:22
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
Download GSTNet 0.5.24---------------------------------------------------------------------------------- ^: Bugfix x: changed feature +: added feature -: deleted feature ************************************************* 2008-05-09 Release 0.5.24 public beta ------------------------------------------------- ^ crash with sending to an none existing receiver x _Synchronize input mode + _SynchronizeEntity + _SynchronizeSkills need sendfile function ?
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: nfs42]
#206194
05/11/08 22:38
05/11/08 22:38
|
Joined: Jul 2006
Posts: 503 Australia
adoado
OP
User
|
OP
User
Joined: Jul 2006
Posts: 503
Australia
|
Thanks I tried it, but it does not work correctly. I replaced the old DLL with the new one and I get messages such as 'ServerInit not found in DLL', 'clientsend not found in DLL', etc. ?? Thanks, Adoado
|
|
|
Re: [GSTNet] Send_Function Working Correctly?
[Re: adoado]
#206199
05/11/08 23:43
05/11/08 23:43
|
Joined: Jun 2001
Posts: 1,004 Dossenbach
nfs42
Serious User
|
Serious User
Joined: Jun 2001
Posts: 1,004
Dossenbach
|
is dll loaded ?? acklog.txt
Andreas GSTools - Home of GSTScript 0.9.8: lua scripting for A6/7/8 GSTNet 0.7.9.20: network plugin for A6/7/8 GSTsqlite 1.3.7: sql database plugin for A6/7/8 3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
|
|
|
|