iguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 10:18 PM
To: Vinod Panicker
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Re: [PHP] Full-Duplex communication
So still there is nothing in your requirements that doesn't suggest
you'll
do fine with a PHP-based liste
So still there is nothing in your requirements that doesn't suggest you'll
do fine with a PHP-based listener.
Of course you have the memory overhead of the PHP interpreter's RAM
infrastructure multiplied by the number of simultaneous connections, but
that would be the same with Apache (at leas
LOL.. I like the color red BTW.
Let me explain my project more in detail.
This system is an Instant messaging system, with the backed
running on apache / php / mysql. The front end client is a COM
component that communicates with the backend, and interfaces with
an MFC app.
Now since Instan
You're right- this is getting interesting ;)
http://www.packetfactory.net/libnet/manual/4.html#s4.1.5
Unless I'm mistaken, you don't need to actually hijack the socket- you merely
need to write to the network. Check out section 3.1 of RFC 793. There is
source and destination port- that is how
Just subscribed to comp.infosystems
True, the listen-fork model would hardly be any lines of code, but
the changes that will have to be done to the client and the server
would be enormous. We are talking abt a production system here
which needs to be optimised. I cant honestly go ahead f
At 7:01 AM + 22/5/02, Vinod Panicker wrote:
>What i have at the other end is a Instant Messenger client :)
Which is presumably accepting some form of HTML or at least a
stream of data sent over HTTP and displaying the data. If it's
notdoing this, Apache is almost certainly the wrong platfor
What i have at the other end is a Instant Messenger client :)
Cant have the script running till the time the user logs out can
i? And also, different activities are triggered on the server
asynchronously (presence status, instant messages, notifications)
which has to be sent to the client.
T
At 5:55 AM + 22/5/02, Vinod Panicker wrote:
>I want the ability to write to a socket thats been created earlier
>- i want to steal it from Apache, so that i can use it when and
>where i like.
Why not just keep your script running and have it send more data
to the browser whenever it becomes
Thanks for the reply Miguel, but here i'm not trying to implement
my own multi-threaded server - exactly the reason why i'm using
Apache / PHP.
I could have made a listening server which is based on a
multi-threaded or multi-forked model, but the time and
complexities involved would be huge.
Ah, yes - http://php.net/pcntl_fork
Well there you go, then - everything required to create a server in PHP.
miguel
On Tue, 21 May 2002, Evan Nemerson wrote:
> 1st thing: sorry about the double-post. i don't know why that happened. If
> this one gets double posted too, i apologize in advance.
1st thing: sorry about the double-post. i don't know why that happened. If
this one gets double posted too, i apologize in advance.
2nd: php.net/pcntl
On Tuesday 21 May 2002 23:30 pm, Miguel Cruz wrote:
> I don't think you're going to get Apache to hand you the socket.
>
> However, you can wr
I don't think you're going to get Apache to hand you the socket.
However, you can write a program using the standalone (CGI) PHP
interpreter that will act like a server - check out
http://php.net/socket_create_listen for more info.
You could redirect from your standard web server to your liste
Vinod,
Interesting...
Okay unless I'm mistaken, what you want to do can't be accomplished through
PHP. However, you may want to take a look at libnet.
http://www.packetfactory.net/Projects/Libnet/
I've always wanted someone to create a PHP interface for this- unfortunatly my
C isn't quite th
Hi,
It still seems like I havent made the problem clear enough.
I am aware of the print(), echo() and flush() functions and what
they do. It does not fit in as a solution. Let me explain my
problem more elaborately -
The client calls a PHP script, script_a.php on the Apache web
server, usin
Hi,
Tx for your very prompt reply.
Yeah, I'll post the solution as soon as I find it someplace.
Let me outline the problem in more detail -
Client (VC++) calls a PHP script on the server, specifies the
connection type as Keep-Alive. The PHP script, somehow (still a
big question) gets the so
15 matches
Mail list logo