include "tbh/global.tbh"
include "tbh/config.tbh"
include "tbh/http_string.tbh"
include "tbh/tcp.tbh"
?>
>
File: tcp_write.html
dim data as string
dim a as pl_sock_state
data = http_req_2_serialData(sock.httprqstring)
doevents
sock.num = TCP_SOCK_NUM
a = sock.state
'socket in 'active open'
if sock.state = PL_SST_EST_AOPENED then
sock.setdata(data)
sock.send
end if
?>