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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 - 13 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 19:05:43 2022 UTC