Beispiel #1
0
def main():
	subStock = ["999999"]

	tcpCliSock = socket(AF_INET, SOCK_STREAM) 
	tcpCliSock.connect(ADDR)
	time.sleep(2)
	if tcpCliSock:
		#订阅股票
		socketFun.subscibeStock(tcpCliSock, subStock)
		print "1"
		#请求数据
		socketFun.requestCurrentDay(tcpCliSock, 0, datetime.time(12,01,00))
		print "2"
		#监听数据返回
		socketFun.recvSubscibeRespond(tcpCliSock)

	tcpCliSock.close()
	pass
 def subscibeStock(self, isAllMarket, subStocks):
     socketFun.subscibeStock(self, isAllMarket, subStocks)
Beispiel #3
0
	def subscibeStock(self, isAllMarket, subStocks):
		socketFun.subscibeStock(self, isAllMarket, subStocks)