Exemple #1
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
Exemple #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
Exemple #3
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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #13
0
	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
Exemple #14
0
	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
Exemple #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
Exemple #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
Exemple #17
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
Exemple #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
Exemple #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
Exemple #20
0
	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
Exemple #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
Exemple #22
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
Exemple #23
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, getIP())
		web.header('Content-Type', 'application/json')
		return r
Exemple #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
Exemple #25
0
def safeint(s) : return warmama.safeint(s)
def safebool(s) : return warmama.safebool(s)
Exemple #26
0
def safeint(s):
    return warmama.safeint(s)