作为客户端试图连接TCP
void tcp_client(int $tcp_id, string $addr, int $port)
none
<?php
include "/lib/sn_tcp_ac.php";
$addr = "192.168.0.100"; // IP address to connect
$port = 1470; // TCP port number to connect
tcp_client(0, $addr, $port); // Attempting to connect (TCP ID: 0)
sleep(15);
?>