Re: udp and tcp packet
| From: | HKG) | Date: | Mon, 07 Jun 2004 08:30:57 +0000 |
| Subject: | Re: udp and tcp packet | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23931@lists.php.net to get a copy of this message | ||
On Mon, 2004-06-07 at 08:43, William CANDILLON wrote:
> Hello,
>
> Is there a way to send udp or tcp packet with php?
> I don't find any library or extension which has this possibility.
I haven't used sockets with PHP so I don;t know fo rsure, but in
general, if you open a socket as AF_INET it /will/ send tcp packages,
however if you want to build tcp or udp packages yourself, you need to
open a raw connection, and build the packages your self. To do this open
the socket in RAW mode, and then you can start pump data.