Sockets question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
szuccaro
Forum Newbie
Posts: 3
Joined: Tue Feb 07, 2006 3:51 pm
Location: westchester, NY
Contact:

Sockets question

Post by szuccaro »

I was wondering. What is the diffrence between socket streaming and regular socket connections in PHP.
Just want to know so I know which is better and what to use.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

socket connections are a low-level, read more management on your side. Where as with a stream, you mostly just need to worry about writing to and reading from the socket.
szuccaro
Forum Newbie
Posts: 3
Joined: Tue Feb 07, 2006 3:51 pm
Location: westchester, NY
Contact:

Post by szuccaro »

Great thanks for the wuick response.
Are regular sockets faster then streams ?
if yes than thats what ill use.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

test and report. :)
szuccaro
Forum Newbie
Posts: 3
Joined: Tue Feb 07, 2006 3:51 pm
Location: westchester, NY
Contact:

Post by szuccaro »

copy that
Post Reply