class Murcure::Ping::Response

Overview

Width Data type Value Comment 4 bytes int Version e.g., \x0\x1\x2\x3 for 1.2.3. Can be interpreted as one single int or four signed chars. 8 bytes long long ident the ident value sent with the request 4 bytes int Currently connected users count 4 bytes int Maximum users (slot count) 4 bytes int Allowed bandwidth

Defined in:

murcure/utils/ping.cr

Constant Summary

BIT_PARTS = [] of Nil

Width Data type Value Comment 4 bytes int Version e.g., \x0\x1\x2\x3 for 1.2.3. Can be interpreted as one single int or four signed chars. 8 bytes long long ident the ident value sent with the request 4 bytes int Currently connected users count 4 bytes int Maximum users (slot count) 4 bytes int Allowed bandwidth

INDEX = [-1]

Width Data type Value Comment 4 bytes int Version e.g., \x0\x1\x2\x3 for 1.2.3. Can be interpreted as one single int or four signed chars. 8 bytes long long ident the ident value sent with the request 4 bytes int Currently connected users count 4 bytes int Maximum users (slot count) 4 bytes int Allowed bandwidth

PARTS = [{"basic", ver_, UInt8, nil, nil, -> do 0 end}, {"basic", ver_maj, UInt8, nil, nil, -> do Murcure::MUMBLE_VER_ARR[1] end}, {"basic", ver_man, UInt8, nil, nil, -> do Murcure::MUMBLE_VER_ARR[2] end}, {"basic", ver_patch, UInt8, nil, nil, -> do Murcure::MUMBLE_VER_ARR[3] end}, {"basic", ident, UInt64, nil, nil, nil}, {"basic", user_count, UInt32, nil, nil, nil}, {"basic", max_users, UInt32, nil, nil, nil}, {"basic", bandwidth, UInt32, nil, nil, nil}] of Nil

Width Data type Value Comment 4 bytes int Version e.g., \x0\x1\x2\x3 for 1.2.3. Can be interpreted as one single int or four signed chars. 8 bytes long long ident the ident value sent with the request 4 bytes int Currently connected users count 4 bytes int Maximum users (slot count) 4 bytes int Allowed bandwidth

Instance Method Summary

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def bandwidth : UInt32 #

def bandwidth=(bandwidth : UInt32) #

def ident : UInt64 #

def ident=(ident : UInt64) #

def max_users : UInt32 #

def max_users=(max_users : UInt32) #

def user_count : UInt32 #

def user_count=(user_count : UInt32) #

def ver_ : UInt8 #

def ver_=(ver_ : UInt8) #

def ver_maj : UInt8 #

def ver_maj=(ver_maj : UInt8) #

def ver_man : UInt8 #

def ver_man=(ver_man : UInt8) #

def ver_patch : UInt8 #

def ver_patch=(ver_patch : UInt8) #