Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17568
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: ioctl like function in php for sockets |
| Date | 2017-08-13 21:08 +0200 |
| Organization | solani.org |
| Message-ID | <omq83n$8kb$1@solani.org> (permalink) |
| References | <96c3c433-394d-44bf-9ebe-cd2c3759d005@googlegroups.com> <omn57h$7cl$1@jstuckle.eternal-september.org> <cd2e17eb-d1c3-49a2-b356-ab294979ca21@googlegroups.com> |
On 13.08.2017 at 08:45, kushal bhattacharya wrote: > On Saturday, August 12, 2017 at 8:35:27 PM UTC+5:30, Jerry Stuckle wrote: > >> On 8/11/2017 9:05 AM, kushal bhattacharya wrote: >> >>> Is there any api function in php which whould tell how the length of packet recieved by the socket? >>> For example there is an api function in C linux which ioctl() which returns the length of the packet recieved by the socket. >> >> No, there is no ioctl support in PHP, and implementing it would be a >> very difficult matter (plus it would be specific not only to the OS, but >> to the specific driver being called). >> >> You could write your own PHP extension to handle your specific case. >> That wouldn't be too hard. > > Could you please give me some pointer here about how to proceed? See <http://www.phpinternalsbook.com/> on how to develop a PHP extension. -- Christoph M. Becker
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ioctl like function in php for sockets kushal bhattacharya <bhattacharya.kushal4@gmail.com> - 2017-08-11 06:05 -0700
Re: ioctl like function in php for sockets Jerry Stuckle <jstucklex@attglobal.net> - 2017-08-12 11:05 -0400
Re: ioctl like function in php for sockets kushal bhattacharya <bhattacharya.kushal4@gmail.com> - 2017-08-12 23:45 -0700
Re: ioctl like function in php for sockets Jerry Stuckle <jstucklex@attglobal.net> - 2017-08-13 08:43 -0400
Re: ioctl like function in php for sockets "Christoph M. Becker" <cmbecker69@arcor.de> - 2017-08-13 21:08 +0200
Re: ioctl like function in php for sockets kushal bhattacharya <bhattacharya.kushal4@gmail.com> - 2017-08-16 01:35 -0700
Re: ioctl like function in php for sockets Angel <vvvvvvvvv11111111@yahoo.com> - 2023-04-11 02:47 -0700
csiph-web