Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17561 > unrolled thread

ioctl like function in php for sockets

Started bykushal bhattacharya <bhattacharya.kushal4@gmail.com>
First post2017-08-11 06:05 -0700
Last post2023-04-11 02:47 -0700
Articles 7 — 4 participants

Back to article view | Back to comp.lang.php


Contents

  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

#17561 — ioctl like function in php for sockets

Fromkushal bhattacharya <bhattacharya.kushal4@gmail.com>
Date2017-08-11 06:05 -0700
Subjectioctl like function in php for sockets
Message-ID<96c3c433-394d-44bf-9ebe-cd2c3759d005@googlegroups.com>
Hi,
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.
Thanks

[toc] | [next] | [standalone]


#17563

FromJerry Stuckle <jstucklex@attglobal.net>
Date2017-08-12 11:05 -0400
Message-ID<omn57h$7cl$1@jstuckle.eternal-september.org>
In reply to#17561
On 8/11/2017 9:05 AM, kushal bhattacharya wrote:
> Hi,
> 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.
> Thanks
> 

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.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#17564

Fromkushal bhattacharya <bhattacharya.kushal4@gmail.com>
Date2017-08-12 23:45 -0700
Message-ID<cd2e17eb-d1c3-49a2-b356-ab294979ca21@googlegroups.com>
In reply to#17563
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:
> > Hi,
> > 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.
> > Thanks
> > 
> 
> 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.
> 
> -- 
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> jstucklex@attglobal.net
> ==================

Could you please give me some pointer here about how to proceed?

[toc] | [prev] | [next] | [standalone]


#17565

FromJerry Stuckle <jstucklex@attglobal.net>
Date2017-08-13 08:43 -0400
Message-ID<omph96$jp4$1@jstuckle.eternal-september.org>
In reply to#17564
On 8/13/2017 2:45 AM, 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:
>>> Hi,
>>> 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.
>>> Thanks
>>>
>>
>> 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?
> 

http://bfy.tw/DLqv

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#17568

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2017-08-13 21:08 +0200
Message-ID<omq83n$8kb$1@solani.org>
In reply to#17564
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

[toc] | [prev] | [next] | [standalone]


#17571

Fromkushal bhattacharya <bhattacharya.kushal4@gmail.com>
Date2017-08-16 01:35 -0700
Message-ID<29792650-f4a1-4d1f-972e-71ffd64f4757@googlegroups.com>
In reply to#17568
On Monday, August 14, 2017 at 12:38:49 AM UTC+5:30, Christoph M. Becker wrote:
> 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

thanks :)

[toc] | [prev] | [next] | [standalone]


#19421

FromAngel <vvvvvvvvv11111111@yahoo.com>
Date2023-04-11 02:47 -0700
Message-ID<4865025b-0e52-421f-b165-39dd244c916an@googlegroups.com>
In reply to#17561
Damn, I cannot believe how unbelievably intelligent You are..............


On Friday, August 11, 2017 at 3:05:22 PM UTC+2, kushal bhattacharya wrote:
> Hi, 
> 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. 
> Thanks

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web