3 $res = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
5 socket_bind($res, "127.0.0.1", 10056);
7 $t = socket_listen($res);
9 // do sockets work the way i would like?
11 $res2 = socket_accept($res);
16 socket_recv($res2, $str, 10, 0);
18 echo "got a bit: $str\n";
20 if(preg_match("/.*\:EOD/", $real_str)) {
21 echo "we have a full str: $real_str\n";
26 echo "no longer in continue\n";