Author Topic: Experiments w/ Pawn Datagrams  (Read 1919 times)

0 Members and 1 Guest are viewing this topic.

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Experiments w/ Pawn Datagrams
« on: June 07, 2011, 01:58:15 pm »
Last weekend, I was reading some Pawn documentation about its ability to send and receive packets. I experimented a bit with it to implement a list of bans using datagrams instead of PSA, which tends to be bulkier. Unfortunately, the Pawn script doesn't seem to be receiving packets from the other server at the moment, but Pawn can successfully send a packet to a server, and the server can receive it without a problem.

Sending the packets from Pawn as packed strings seems to work best. If you send strings as unpacked, Pawn will UU-encode and compress them itself, which makes it harder to unpack when it gets to the server. Here are the results so far. I may put the scripts up when I get the Pawn server to receive packets.





Do not PM me for support.




Offline (SZ)Naruto

  • Street Thug
  • *
  • Posts: 33
  • PCS | European ProJect Counter Strike Server
    • View Profile
Re: Experiments w/ Pawn Datagrams
« Reply #1 on: June 07, 2011, 02:03:43 pm »
Good Work Xd  ;D