tcp_client()


作为客户端试图连接TCP

Description

void tcp_client(int $tcp_id, string $addr, int $port)

Parameters

Return Value

none

Example

<?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);
?>

See also