The shout_connect function opens a connection to an icecast server. It also
logs into the server with the password set for the connection using either the
icy or x-audiocast protocols.
int shout_connect(
shout_conn_t *self /* pointer to the connection structure */
);
Parameters
self
pointer to the connection structure
Return Values
Returns true (1) on success or false (0) on failure. If the function fails, self->error will contain
the error code.
error code
reason
SHOUTERR_INSANE
Function failed the sanity check. The ip, password, or port was invalid, or there is already
an established connection.
SHOUTERR_NOCONNECT
A connection to the server could not be established.
SHOUTERR_NOLOGIN
The function failed trying to login to the server.