in reply to Re^2: Socket recv?
in thread Socket recv?

I don't know - I would imagine that you will need to look at what gets send over the wire to know what your server responds. Also look at Net::SIP if you're actually doing SIP.

Replies are listed 'Best First'.
Re^4: Socket recv?
by packetstormer (Monk) on Mar 11, 2011 at 22:18 UTC
    The SIP is a TLA for the server name not the SIP protocol!!

    I am using strict in my code, I should have posted that too.

    What do you mean checking return values, I thought that is what I am doing print the recv value?

    And I am not sure what you mean by closing the socket. I am not closing the socket, as far as I can see!
      The return values are different from the values the parameters are set to. For example, if you look here, you will see that
      $socket->send ("example"\n");
      really should be:
      my $retval = $socket->send("example\n"); # make sure $retval is defined, and contains the length of the strin +g
      ditto for the recv call.

      As for closing the socket, I understand that *you* are not closing it, but there are 2 sides to every connection :).