3 $address = "google.cz";
6 echo("Service: $address:$port Running: ");
8 $master = socket_create(AF_INET
, SOCK_STREAM
, SOL_TCP
);
9 socket_set_option($master, SOL_SOCKET
,SO_REUSEADDR
, 1);
10 // socket_set_option($master, SOL_SOCKET, SO_SNDTIMEO, 10); //Pokus nastavit timeout
12 if (socket_connect($master, $address, $port)) { //Podařilo se inicializovat spojení?
13 echo("1Yeah!\n"); //Ano
14 socket_close($master);
19 if (socket_write ($master, "TEST")) { //Podařilo se inicializovat spojení?
20 echo("2Yeah!\n"); //Ano
21 socket_close($master);
This page took 0.773578 seconds and 4 git commands to generate.