|roar_stream_connect_to(3)||System Manager's Manual: RoarAudio||roar_stream_connect_to(3)|
roar_stream_connect_to - Connects a stream to some listening socket
int roar_stream_connect_to(struct roar_connection * con, struct roar_stream * s, int type, char * host, int port);
This let the sound server connect to some remote end to get it's data for a stream. This is used internaly to open additional streams for roar_simple_new_stream(3).
This call will block until the server process to connect to has accepted the connection. This makes this call unusable to connect back to us if we are not threaded. For a nonblocking call see roar_stream_connect_to_ask(3).
On success these calls return 0. On error, -1 is returned.