|
|
|
@ -3,12 +3,12 @@ import sys |
|
|
|
|
from thrift.protocol import TBinaryProtocol |
|
|
|
|
from thrift.transport import TSocket, TTransport |
|
|
|
|
|
|
|
|
|
sys.path.append("/home/hua/PycharmProjects/PixivSearch") |
|
|
|
|
sys.path.append('/root/PixivSearch') |
|
|
|
|
from PixivSearch.thrift.TestQry.TestQry import Client |
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
|
# Make socket |
|
|
|
|
socket = TSocket.TSocket('127.0.0.1', 2233) |
|
|
|
|
socket = TSocket.TSocket('mikuhime.xyz', 2233) |
|
|
|
|
|
|
|
|
|
# Buffering is critical. Raw sockets are very slow |
|
|
|
|
transport = TTransport.TFramedTransport(socket) |
|
|
|
|