title: PHP Socket define the max time to wait
body: <pre><code>$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
  socket_bind($socket, $ip_server , $port);
  
  socket_sendto($socket, $ascii_egyben_kimenet, strlen($ascii_egyben_kimenet), 0, $ip_plc , $port);
  $valasz_kimenet=socket_read($socket, 256);
  </code></pre>
  
  <p>Because the socket_read the server is waiting for an answer...
  How I can define the max time to wait?</p>