takecx / RemoteControllerMod

Minecraft Remote Controller Mod
7 stars 5 forks source link

Add socket communication feature #15

Closed takecx closed 3 years ago

takecx commented 3 years ago

概要

ソケット通信ができるようにする

takecx commented 3 years ago

以下のpythonスクリプトを作成して実行したところ、正常にsocket testが表示されたのでできているぽい

import socket

ip1 = 'localhost'
port1 = 14712
server1 = (ip1, port1)

socket1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket1.connect(server1)
socket1.send(b'chat.post(socket test)')
takecx commented 3 years ago

image