All pastes #363533 Raw Edit

Mine

public python v1 · immutable
#363533 ·published 2007-02-19 14:44 UTC
rendered paste body
import GameLogicimport socketcon = GameLogic.getCurrentController()levo = con.getSensor('left')desno = con.getSensor('right')gor = con.getSensor('up')dol = con.getSensor('down')host = 'localhost'port = 50000size = 1024s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.connect((host,port))if levo.isPositive():	s.send('Left')if desno.isPositive():	s.send('Right')if dol.isPositive():	s.send('Down')	if gor.isPositive():	s.send('Up')	data = s.recv(size)s.close()print 'Received:', data