• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

AutoIT [UDF] Simple & flexible multi-clients TCP server

Status
Not open for further replies.

DDoSer

The Real DDoSer
User
Joined
Oct 9, 2013
Messages
352
Reputation
0
Reaction score
4,578
Points
243
Credits
0
‎11 Years of Service‎
51%
[HIDE-THANKS]Features:

  • You can create multiples servers in one script
  • Peers limit is optional (the real peers limit is your RAM and the maps performances)
  • You can configure max data receive len (2nd argument of TCPRecv) on a per-client basis
  • You can set an optional idle time-out (time without receiving any data before peer gets disconnected)
  • Each peer has an empty Map that can contain user defined data
  • You can set a function that will be called for each connected peer at pre-defined interval (onPeerCycle callback)
  • The UDF is callback driven (onConnect, onDisconnect, onReceive, onError, onPeerCycle)
  • You can set a disconnect message when kicking a peer. This message will be passed to the onDisconnect callback
  • onReceive callback must return the number of bytes that have been consumed. Say you receive 100 bytes of data but you used (consumed) only 70 bytes, by returning 70 from the callback the remaining 30 bytes will be buffered and passed again on the next call to onReceive


Known bugs:

  • TCPRecv bug! the function doesn't detect peer disconnection (hope this will be fixed soon)


Download:

This link is hidden for visitors. Please Log in or register now.
[/HIDE-THANKS]

 
Status
Not open for further replies.
Back
Top