"Wez Furlong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
The module whose resources you are accessing needs to export a
function that will give you the list id, and also publish their
structure layout in a header file.
Just out of interest, what functions are in your extension?
Yep, that did work, thanks a lot
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
wow thanks, I'm gonna go and try it out right now and tell you my results
""Sara Golemon"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > static int le_socket = -1;
> >
> Scratch that, those instances of -1 should have been 0
> (Which is what zend_fetch_list_dtor_id() returns a
static int le_socket = -1;
Scratch that, those instances of -1 should have been 0
(Which is what zend_fetch_list_dtor_id() returns as failure)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Is there any way of getting the resource id without modifying sockets?
ZEND_API int zend_fetch_list_dtor_id(char *type_name);
As an implementation:
In *your* socketi.c:
static int le_socket = -1;
PHP_RINIT(socketi)
{
if (le_socket == -1) {
le_socket = zend_fetch_list_dtor_id("Sock
On 9/11/05, RG <[EMAIL PROTECTED]> wrote:
> Yeah I have seen those functions, but they are quite bloated in my opnion.
Maybe so, but at least they work :)
> Is there any way of getting the resource id without modifying sockets?
Nope.
--Wez.
> "Wez Furlong" <[EMAIL PROTECTED]> wrote in message
Yeah I have seen those functions, but they are quite bloated in my opnion.
Is there any way of getting the resource id without modifying sockets?
"Wez Furlong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On 9/11/05, RG <[EMAIL PROTECTED]> wrote:
> Well, I've improved the socket_acce
On 9/11/05, RG <[EMAIL PROTECTED]> wrote:
> Well, I've improved the socket_accept and socket_connect functions and I've
> name them socketi_*. socketi_accept returns the IP as well as the port
> number, and socket_connect has a timeout function.
Have you seen stream_socket_server(), stream_socket_
"Wez Furlong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
The module whose resources you are accessing needs to export a
function that will give you the list id, and also publish their
structure layout in a header file.
Just out of interest, what functions are in your extension?
The module whose resources you are accessing needs to export a
function that will give you the list id, and also publish their
structure layout in a header file.
Just out of interest, what functions are in your extension?
--Wez.
On 9/11/05, RG <[EMAIL PROTECTED]> wrote:
> I've created a new mod
10 matches
Mail list logo