Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ AConnectRec(3X) — HP-UX 9.10

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

APlaySStream(3X)

ARecordSStream(3X)

AConnectRecordStream(3X)  —  Series 700 Only

NAME

AConnectRecordSStream − connect socket to TCP socket address; return transaction ID

SYNOPSIS

#include <audio/Alib.h>

ATransID AConnectRecordSStream (

Audio *audio,

SStream *remote_sstream,

SSRecordParams *rp,

long *status_return

);

DESCRIPTION

AConnectRecordSStream() is used by an application that is preparing to send a record sound stream to a server on another system.  After creating a socket, the application calls AConnectRecordSStream() to connect it to the other server at the TCP socket address contained in remote_stream, the pointer to which it obtains from the application that controls the other server. The call returns a transaction ID for the operation. 

audio specifies the Audio structure associated with this application’s connection to its own server. 

remote_sstream is a structure containing a TCP socket address, audio attributes, and the maximum block size, in bytes, of each transfer of audio data over the connection. 

rp is the structure containing the record gain, pause_first toggle, gain matrix, and the mask for event notification. 

status_return receives the returned status of the operation unless it is set to NULL. 

RETURN VALUE

Upon successful completion, AConnectRecordSStream() returns a transaction ID. 

ERRORS

If status_return is not set to NULL, one of the following is returned in status_return:

 0 AENoError

 2 AEBadAudio

10 AEBadGainMatrix

21 AEBadSoundStream

EXAMPLES

The following example connects a socket to another server’s TCP socket address and returns a transaction ID for the operation. 

ATransID xid;            /* transaction ID */
Audio *audio;            /* audio connection */
SStream *r_sstream;      /* remote stream descrip */
SSRecordParams *ss_rp;   /* sstream record params */
long status;             /* error status */
.
.
.
/* connect to TCP socket addr and get transID */
xid = AConnectRecordSStream(audio, r_sstream, ss_rp, &status);

DEPENDENCIES

This function belongs to the Audio Library of functions that manage connections to an audio server.  The audio server must run on a system that has audio hardware.  To find out whether or not your system has audio hardware, refer to the hardware manual that accompanies your system. 

AUTHOR

AConnectRecordSStream() was developed by HP. 

SEE ALSO

APlaySStream(3X), ARecordSStream(3X). 

Using the Audio Application Program Interface.

Hewlett-Packard Company  —  HP-UX Release 9.10: April 1995

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026