Searched refs:afile (Results 1 – 1 of 1) sorted by relevance
100 def serveclient(asock, afile): argument102 afile.seek(0)103 abuf = list(afile.read())112 afile.seek(req.offset)113 afile.write(req.data)114 afile.flush()120 def mainloop(listensock, afile): argument125 serveclient(sock, afile)129 afile = file(argv[2], 'rb+')134 mainloop(sock, afile)