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


Groups > comp.lang.php > #17568

Re: ioctl like function in php for sockets

Path csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: ioctl like function in php for sockets
Date Sun, 13 Aug 2017 21:08:44 +0200
Organization solani.org
Lines 23
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>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1502651320 8843 eJwFwYERADAEBLCVin9qHKfsP0ITmot3wOngclNtYAEBXzej0oOQ0Wq9OCWzI9ugvcrD+gk+EMo= (13 Aug 2017 19:08:40 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 13 Aug 2017 19:08:40 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
X-User-ID eJwFwQkBACAIBLBKIHBgHPn6R3AzAaNcYVBb2xOOJ0BjeaIwUrUDJr/RkUTUI96rI1mW7wMcthGZ
Content-Language de-DE
In-Reply-To <cd2e17eb-d1c3-49a2-b356-ab294979ca21@googlegroups.com>
X-NNTP-Posting-Host eJwFwQkBACAIA8BKDtzAOPjQP4J3dEEnpqjJZmOBfGh31B2p3DfGssKxx7Rp21sVgdpsrfwHBBBx
Cancel-Lock sha1:FrSgRu9yDjxu7DPsz8dUBJZ07G0=
Xref csiph.com comp.lang.php:17568

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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