0
私は、次の短いコードを持っている:変換文字列
import socket
from sys import *
host = "10.10.10.10"
port = 7142
buf = 1024
tcpSock = socket.socket()
tcpSock.settimeout(100)
tcpSock.connect((host,port))
## Send message
data ='\x01\x30\x41\x30\x41\x30\x36\x02\x30\x31\x44\x36\x03\x74\x0d'
if(tcpSock.send(data)):
print "Sending message:",data
data = tcpSock.recv(4096)
tcpSock.close()
print "Received message:", data
#print "Received message:", data.strip().decode("hex")
出力はされて:☺0A0A06☻01D6♥tのメッセージ受信
:☺を
がメッセージを送信します00AB12☻0200D60000040001♥t
ここで私が立ち往生しているのは、バックサーバーからHEXの文字に "受信メッセージ"
おかげ アレクシス
パーフェクトを受けてきました!ご協力ありがとうございました – alexis