Top Level Namespace

Defined Under Namespace

Classes: Channel, ChatHandler, Database, Log, Protocol, PubsubHandler, RedisMemory, SQLite, SharedMemory, SyncHandler, UserHandler, Version

Instance Method Summary collapse

Instance Method Details

#defLogger(msg) ⇒ Object



1
2
3
4
# File 'lib/debug/log.rb', line 1

def defLogger(msg)
    puts msg
	Log.logfile.puts msg
end

#getFixVersionObject



23
24
25
# File 'lib/core/version.rb', line 23

def getFixVersion
    return 0
end

#getMajorVersionObject



17
18
19
# File 'lib/core/version.rb', line 17

def getMajorVersion
    return 1
end

#getMinorVersionObject



20
21
22
# File 'lib/core/version.rb', line 20

def getMinorVersion
    return 0
end

#getVersionObject



27
28
29
30
31
# File 'lib/core/version.rb', line 27

def getVersion
    ver = Version.new(
        getMajorVersion,getMinorVersion,getFixVersion)
    return ver
end

#meInitializeObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/core/core.rb', line 5

def meInitialize
	
	Signal.trap("INT")  do
		Log.output "quit by user"
		EventMachine.stop
	end
  
	t = Time.new 
	logfile = "log/#{t.year}.#{t.month}.#{t.day}.log"
	Log.logfile = File.new(logfile, "a")
	
	return true
end

#polling(&block) ⇒ Object



1
2
3
# File 'lib/core/core.rb', line 1

def polling(&block)
	EventMachine.run block
end