mixed Net_Socket::gets (
integer $size
)
Returns a string containing data from the socket connection
integer $size
- maximum number of chars to recieve
string
- the data or a PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
NULL | "not connected" | There is no open connection. | You must establish a connection before ( Net_Socket::connect()). |
This function can not be called statically.