示例#1
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		csession = safeint( input.get( 'csession', '0' ) )
		gameon = safeint( input.get( 'gameon', '0' ) )
		
		r = warmama.warmama.ServerClientDisconnect(ssession, csession, gameon)
		web.header('Content-Type', 'application/json')
		return r
示例#2
0
    def POST(self):
        input = web.input()
        ssession = safeint(input.get('ssession', '0'))
        csession = safeint(input.get('csession', '0'))
        gameon = safeint(input.get('gameon', '0'))

        r = warmama.warmama.ServerClientDisconnect(ssession, csession, gameon)
        web.header('Content-Type', 'application/json')
        return r
示例#3
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self) :
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		csession = safeint( input.get( 'csession', '0' ) )
		cticket = safeint( input.get( 'cticket', '0' ) )
		cip = input.get( 'cip', '' )
		
		r = warmama.warmama.ServerClientConnect(ssession, csession, cticket, cip)
		web.header('Content-Type', 'application/json')
		return r
示例#4
0
	def POST(self) :
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		csession = safeint( input.get( 'csession', '0' ) )
		cticket = safeint( input.get( 'cticket', '0' ) )
		cip = input.get( 'cip', '' )
		
		r = warmama.warmama.ServerClientConnect(ssession, csession, cticket, cip)
		web.header('Content-Type', 'application/json')
		return r
示例#5
0
	def POST(self):
		input = web.input()
		
		handle = safeint( input.get( 'handle', '0' ) )
		secret = input.get( 'digest', '' )
		valid = safeint( input.get( 'valid', '0') )
		profile_url = input.get( 'profile_url', '' ).strip(' \t\n\r')
		profile_url_rml = input.get( 'profile_url_rml', '' ).strip(' \t\n\r')

		r = warmama.warmama.ClientAuthenticate(handle, secret, valid, profile_url, profile_url_rml)
		web.header('Content-Type', 'text/plain')
		return r
示例#6
0
    def POST(self):
        input = web.input()

        handle = safeint(input.get('handle', '0'))
        secret = input.get('digest', '')
        valid = safeint(input.get('valid', '0'))
        profile_url = input.get('profile_url', '').strip(' \t\n\r')
        profile_url_rml = input.get('profile_url_rml', '').strip(' \t\n\r')

        r = warmama.warmama.ClientAuthenticate(handle, secret, valid,
                                               profile_url, profile_url_rml)
        web.header('Content-Type', 'text/plain')
        return r
示例#7
0
	def POST(self):
		input = web.input()
		csession = safeint( input.get( 'csession', '0' ) )
		
		r = warmama.warmama.ClientLogout(csession, web.ctx.ip)
		web.header('Content-Type', 'application/json')
		return r
示例#8
0
	def POST(self):
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		
		r = warmama.warmama.MatchUUID(ssession, web.ctx.ip)
		web.header('Content-Type', 'application/json')
		return r
示例#9
0
	def POST(self):
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		
		r = warmama.warmama.Heartbeat(ssession, web.ctx.ip, 'server')
		web.header('Content-Type', 'application/json')
		return r
示例#10
0
	def POST(self):
		input = web.input()
		csession = safeint( input.get( 'csession', '0' ) )
		
		r = warmama.warmama.ClientLogout(csession, getIP())
		web.header('Content-Type', 'application/json')
		return r
示例#11
0
	def POST(self):
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		
		r = warmama.warmama.Heartbeat(ssession, getIP(), 'server')
		web.header('Content-Type', 'application/json')
		return r
示例#12
0
    def POST(self):
        input = web.input()
        ssession = safeint(input.get('ssession', '0'))

        r = warmama.warmama.ServerLogout(ssession, web.ctx.ip)
        web.header('Content-Type', 'application/json')
        return r
示例#13
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		
		r = warmama.warmama.ServerLogout(ssession, getIP())
		web.header('Content-Type', 'application/json')
		return r
示例#14
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		csession = safeint( input.get( 'csession', '0' ) )
		
		r = warmama.warmama.Heartbeat(csession, getIP(), 'client')
		web.header('Content-Type', 'application/json')
		return r
示例#15
0
	def POST(self):
		input = web.input()
		ssession = safeint( input.get( 'ssession', '0' ) )
		
		r = warmama.warmama.MatchUUID(ssession, getIP())
		web.header('Content-Type', 'application/json')
		return r
示例#16
0
    def POST(self):
        input = web.input()
        csession = safeint(input.get('csession', '0'))

        r = warmama.warmama.Heartbeat(csession, web.ctx.ip, 'client')
        web.header('Content-Type', 'application/json')
        return r
示例#17
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		csession = safeint( input.get( 'csession', '0' ) )
		saddr = input.get( 'saddr', '' )
		
		r = warmama.warmama.ClientConnect(csession, saddr)
		web.header('Content-Type', 'application/json')
		return r
示例#18
0
    def POST(self):
        input = web.input()
        csession = safeint(input.get('csession', '0'))
        saddr = input.get('saddr', '')

        r = warmama.warmama.ClientConnect(csession, saddr)
        web.header('Content-Type', 'application/json')
        return r
示例#19
0
    def POST(self):
        input = web.input()

        ssession = safeint(input.get('ssession', '0'))
        report = input.get('data', '')

        r = warmama.warmama.MatchReport(ssession, report, web.ctx.ip)
        web.header('Content-Type', 'application/json')
        return r
示例#20
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		
		ssession = safeint( input.get( 'ssession', '0' ) )
		report = input.get( 'data', '' )
		
		r = warmama.warmama.MatchReport(ssession, report, getIP())
		web.header('Content-Type', 'application/json')
		return r
示例#21
0
	def POST(self):
		input = web.input()
		port = safeint( input.get( 'port', '0' ) )
		authkey = input.get('authkey', '')
		hostname = input.get('hostname', '')
		demos_baseurl = input.get('demos_baseurl', '')
		
		r = warmama.warmama.ServerLogin(authkey, getIP(), port, hostname, demos_baseurl)
		web.header('Content-Type', 'application/json')
		return r
示例#22
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		port = safeint( input.get( 'port', '0' ) )
		authkey = input.get('authkey', '')
		hostname = input.get('hostname', '')
		demos_baseurl = input.get('demos_baseurl', '')
		
		r = warmama.warmama.ServerLogin(authkey, getIP(), port, hostname, demos_baseurl)
		web.header('Content-Type', 'application/json')
		return r
示例#23
0
文件: wcgi.py 项目: Picmip/warmama
	def POST(self):
		input = web.input()
		
		login = input.get( 'login', '' ).strip(' \t\n\r')
		pw = input.get( 'passwd', '' ).strip(' \t\n\r')
		handle = safeint( input.get( 'handle', '' ) )
		
		r = warmama.warmama.ClientLogin(login, pw, handle, getIP())
		web.header('Content-Type', 'application/json')
		return r
示例#24
0
    def POST(self):
        input = web.input()

        login = input.get('login', '').strip(' \t\n\r')
        pw = input.get('passwd', '').strip(' \t\n\r')
        handle = safeint(input.get('handle', ''))

        r = warmama.warmama.ClientLogin(login, pw, handle, web.ctx.ip)
        web.header('Content-Type', 'application/json')
        return r
示例#25
0
def safeint(s) : return warmama.safeint(s)
def safebool(s) : return warmama.safebool(s)
示例#26
0
def safeint(s):
    return warmama.safeint(s)