简体   繁体   中英

How to send messages on twisted python package without encoding and decoding?

I have three clients and I want to send messages using twisted package on python3 and I don't want to be encoded and decode, I want to send the messages as numbers without enc-dec to string.

I want to send the messages as numbers without enc-dec to string.

Do you understand why encoding and decoding is necessary? Data is passed through networks as bytes. Applications are responsible for translating bytes to and from higher level data structures. To be very blunt, you cannot send/receive messages without encoding and decoding to bytes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM