include "tbh/global.tbh"
include "tbh/config.tbh"
include "tbh/tcp.tbh"
include "tbh/http_string.tbh"
?>
>
File: tcp_connect.html
dim tcpIpConf as tcp_ip_config
'initialize the buffer
tcp_buff_init()
'get the ip and port
tcpIpConf = http_req_2_tcp(sock.httprqstring)
doevents
sock.num = TCP_SOCK_NUM
sock.reset
sock.targetip = tcpIpConf.ip
sock.targetport = tcpIpConf.port
sock.connect
?>