【2.61】HSP初質P56【3.2β2】
■ このスレッドは過去ログ倉庫に格納されています
0636名無しさん@そうだ選挙に行こう
2009/08/30(日) 06:01:44#include "pcbnet2.as"
#deffunc httpsend str host,str send
tcpopen id,host,80
if stat:return 1
repeat
await 5
tcpiscon id
if stat : break
loop
if stat!1:tcpclose id:return 2
tcpput send,id
repeat 50
wait 1
tcpfail id
if stat:break
loop
tcpcount datasize,id
sdim s,datasize
tcprecv s,0,datasize,id
return s
#global
httpsend "www.google.co.jp",header
mes stat
モジュール内でpcbnet使って通信したいんですが
tcpopen命令のとこで初期化エラーが発生してreturn1になってしまいます なんで?
■ このスレッドは過去ログ倉庫に格納されています