2012-09-01から1ヶ月間の記事一覧
PHP $sock = fsockopen($host, $port, $errorno, $errstatus, 5); $json = json_encode(array('data' => 'データ')); fwrite($sock, $json); fclose($sock); Python import socket import json server_sock = socket.socket(socket.AF_INET, socket.SOCK_STR…