php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16950 socket_fd_*() functions
Submitted: 2002-05-01 16:31 UTC Modified: 2002-05-01 17:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: daveletourneau at hotmail dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.2.0 OS: Windows 2000
Private report: No CVE-ID: None
 [2002-05-01 16:31 UTC] daveletourneau at hotmail dot com
I'm trying to develop a multi-client socket server and this requires using some trick to manage all the client sockets at one time...

I am on Win2k so all the functions to "fork" in the program are not available.  I decided to use the socket_select() way that needs calls to socket_fd_*() functions but these do not seem to exist : "Call to undefined function:  socket_fd_alloc()".  Apparently, all other socket functions ARE available...  is this a bug or the win32 socket library just doesn't contain these functions?  If you have any alternatives, it would be very great...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-01 17:00 UTC] mfischer@php.net
They have been removed. socket_select(), for which is the only call you actually would need those sets, simply accepts arrays of sockets and will manipulate them so the array will only contain the changed sockets afterwards. Wait a few days until the documentation for http://php.net/socket_select shows up.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC