abstract class EncryptedTcp::ActionHandler
- EncryptedTcp::ActionHandler
- Reference
- Object
Overview
Generic implementation of an action that can be performed. The TCP_LISTENER sends data that it recieves via the socker directly here. The Action can perform logic on that data.
Direct Known Subclasses
Defined in:
tcp_engine/action_handler.crConstructors
Instance Method Summary
- #check_ping(data, socket, encryptor)
-
#handle(input) : String
Handle is the single logic point of an action The input is the unencryped data request and the output will be the unencrypted response back to the client
- #locked_puts(socket, data)
- #pong_response(socket : TCPSocket, encryptor)
-
#process(socket : Socket, encryptor : EncryptedTcp::Encryptor, data : String)
For example purposes, just output data
Constructor Detail
Instance Method Detail
abstract
def handle(input) : String
#
Handle is the single logic point of an action The input is the unencryped data request and the output will be the unencrypted response back to the client
def process(socket : Socket, encryptor : EncryptedTcp::Encryptor, data : String)
#
For example purposes, just output data