http://www.perlmonks.org?node_id=45667

Magius_AR has asked for the wisdom of the Perl Monks concerning the following question:

I can't seem to get my Perl server to communicate with a given client. I'm using Socket.pm and the socket gets set up fine and it tells me that a connection is made. However, when trying to send an integer value to the C client from the Perl server, it chokes. Anybody had a problem like this? Incompatability between Perl server and C client?

Specifics:
C Client never gets past this line: len = read(sockfd,buffer,2);
Perl Server gets past this line: print $remote "$length\n";
and it locks on the next one: print $remote "$fortunes[$num]\n";

Help would be much appreciated,
Thanks, Magius_AR