cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

(no subject)

From: Dshah <divxtamana_at_gmail.com>
Date: Tue, 10 Sep 2013 17:12:26 +0300

// connect to the internet using the '192.168.0.100' IP
$opts = array(
    'socket' => array(
        'bindto' => '192.168.0.100:0',
    ),);

// create the context...
$context = stream_context_create($opts);
$fp = @stream_socket_client ( $link, $errno, $errstr, 120,
STREAM_CLIENT_CONNECT, $context);

On Fri, Aug 16, 2013 at 9:05 PM, Zhongxing Ming <zhongxming_at_gmail.com>wrote:

> Hi,
>
> Could anyone suggest me how to do pass a custom socket to curl using PHP?
> The socket has a new address family which is neither IPv4 or IPv6. I saw
> the example of external socket in externalsocket.c and tested the custom
> socket in externalsocket.c. It worked fine. But I don't know how to let
> curl use the custom socket in PHP.
>
> --
> Best regards
>
> Zhongxing Ming
>
>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2013-09-10