By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,967 Members | 1,690 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,967 IT Pros & Developers. It's quick & easy.

socket deadlock

P: n/a
Hello all!

Im getting started learning php at the moment...with some difficulties:
I want to comunicate with a java server via sockets:

$socket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
$connection = socket_connect($socket,'localhost',3141);
while($data = socket_read($socket,3141))
echo $data;

write and read seperatly are fine, but in combination they produce some
deadlock causing a timeout! I googeled a good bit, but couldnt get

can you give me any hints for this problem?



Jul 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.