Author Topic: Send data between two servers, how exactly ?  (Read 626 times)

0 Members and 1 Guest are viewing this topic.

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Send data between two servers, how exactly ?
« on: May 10, 2009, 09:42:29 am »
hi
i have to know howto send data between two servers, or more
like the /all <Text here> command on all Leo's

would be nice if somebody write these functions:
Code: [Select]
Connect (IP: port: integer);
Create (port: integer); // 127.0.0.1:PORT
OnRecived(data: string); // [event] recived data to connected socket
Send (data: string); // send some data to connected socket

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: Send data between two servers, how exactly ?
« Reply #1 on: May 10, 2009, 09:52:18 am »
For the record, the way the LRS servers work is having a bot connected via the servers' admin ports, which then relays messages to all servers. The only thing the soldatserver script actually does is to WriteLn data to said bot upon a player executing the command and then parsing whatever messages it receives from the bot. You can most certainly do it with Connect() and OnReceived(), but it'd be an itsy bit more complicated.

Happy coding.

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: Send data between two servers, how exactly ?
« Reply #2 on: May 10, 2009, 02:53:25 pm »
yeh, and i get some kinda threaded create error in admin console:
Code: [Select]
[*] Compiling SRMT_SERVER -> menager_server.pas...
 [*] Compilation Complete.
[SOCKET] Recompiled!
 [*] [Error] Custom -> (ThreadedCreate): Access violation at address 00000000. R
ead of address 00000000
[SOCKET] Socket created at port 23000
[SOCKET] Server system: Windows
[SOCKET] Recompiled!
[SOCKET] Recompiled!
 [*] [Error] SRMT_SERVER -> (MainSocketLoop): Out Of Range
 [*] [Error] SRMT_SERVER -> (ActivateServer): Out Of Range
----------------------------------------------------------------
ctf_Ash by chakapoko maker
 Server IP: 192.168.2.100 Port: 23073
 ASE Port: 23196
 Connection for file server started. Port: 23083
Registering server @ ASE Master Server
BattlEye anti-cheat enabled
Registering server @ 67.106.77.21
Game server added to lobby server @ 67.106.77.21
 [*] [Error] SRMT_CLIENT -> (ThreadedCreate): Socket Error # 10061
Connection refused.
 [*] [Error] SRMT_SERVER -> (ThreadedCreate): Socket Error # 10061
Connection refused.