// Authorize checks if the user account has the specified permission
func (cc *ClientConn) Authorize(access int) bool {
// Authorize checks if the user account has the specified permission
func (cc *ClientConn) Authorize(access int) bool {
// notifyOthers sends transaction t to other clients connected to the server
func (cc *ClientConn) notifyOthers(t Transaction) (trans []Transaction) {
for _, c := range sortedClients(cc.Server.Clients) {
// notifyOthers sends transaction t to other clients connected to the server
func (cc *ClientConn) notifyOthers(t Transaction) (trans []Transaction) {
for _, c := range sortedClients(cc.Server.Clients) {
ID: t.ID,
clientID: cc.ID,
ErrorCode: []byte{0, 0, 0, 0},
ID: t.ID,
clientID: cc.ID,
ErrorCode: []byte{0, 0, 0, 0},