結果
hogefugaラッパというのが指定できないのでデフォルトはtcp、ということがわかった。
example.com => tcp://example.com
これはただの文字列なので、connectの引数に文字を足せるようにしてみたらいけた。
<?php $sock = new Net_Socket(); $type = 'udp://'; $sock->connect($host, $port, $persistent, $timeout, $option, $type);
hogefugaラッパというのが指定できないのでデフォルトはtcp、ということがわかった。
example.com => tcp://example.com
これはただの文字列なので、connectの引数に文字を足せるようにしてみたらいけた。
<?php $sock = new Net_Socket(); $type = 'udp://'; $sock->connect($host, $port, $persistent, $timeout, $option, $type);