class Strum::Server::Packet::Terminator

The Terminator of this Packet.

Public Class Methods

new(term = nil) click to toggle source

Some packets need terminators to alert the receiver to stop reading data

# File lib/strum/server/packet/terminator.rb, line 15
def initialize(term = nil)
  self[:Buffer] = term ? [term].pack('C*') : Async::IO::Buffer.new
end