General info | Getting started | Samples | Components reference | FAQ | Solutions |

Components reference


    IpClient

Connects to remote server, sends and receives audio stream over TCP/IP network.

Set Host, Proto and Port properties to specify the remote host. Set Active to true to initiate the connection.

Implements
IIpClientdefault 
IvcproIpClientEventsdefaultsource
IvcproProvider  
IvcproConsumer  

IvcproIpClientEvents (IDispatch)
Can be implemeted by client to hook events
Methods
void OnConnect()Fires when client connects to server
void OnDisconnect()Fires when client disconnects from server
void OnDataAvailable()This method is fired every time component has produced or received new chunk of data. Use this event to access the stream data
void OnReceiveText(long ConnId, BSTR Text)Fires when component receives a text from remote side.

IIpClient
Dispatch interface for IpClient component
Methods
VARIANT GetData()Reads available data from output stream. Usually used when OnDataAvailable event fires
void SetData(VARIANT* data)Writes data to input stream
void SendText(BSTR text)Sends text message to server over network
Properties
bool ActiveSet to true to activate (open) the component. All other properties should be set to proper values before activation. Set to false to deactivate (close) the component
bool AutoActivateWhen true tells the component it must activate consumer (if any) before activating itself. Same applies for deactivation. When false the component does not change the consumer state
BSTR BindToSpecifies the IP address the socket should bind to. Default '0.0.0.0' means that the socket should bind to the first available network interface.
long BytesReceivedReturns number or bytes component has received from the network
long BytesSentReturns number or bytes component has sent to the network
long DataSizeInReturns data written into but not yet processed by the pipe
long DataSizeOutReturns data size available to read from the pipe
BSTR DumpInputFile name to dump the component input data to
BSTR DumpOutputFile name to dump the component output data to
BSTR HostSpecifies host name (or IP address) for the client TCP/IP socket
bool IsFormatProviderWhen true the component will assign stream format to the consumer (if any). This simplifies the process of distributing stream format among linked components. For example WaveRiff component can assign PCM format to linked WaveOutDevice component, so WAVe file will be played back correctly
bool EnableDataProcessingWhen set to False suppresses any new data from being produced by the component itself. For example, WaveIn component will not stream any new data (but will remain Active). In addition, components like Codec and Resampler will not perform any data processing, passing the incoming data down to consumers without any modification
unaStreamingMode StreamingModeSpecifies whether component uses communication protocol (VC) or streams raw audio to the network (RAW). Use raw streaming for external network devices, such as Barix Exstreamer/Instreamer/Anuncicom.
BSTR PortSpecifies port number for the client/server TCP/IP socket
unaProtoType ProtoSpecifies Proto for the TCP/IP socket (TCP or UDP)
bool SyncEventsSpecifies whether events calls synchronized through main thread


See also...

Base interfaces

Wave processing components:
WaveIn, WaveOut, WaveCodec, WaveRiff, WaveMixer, WaveResampler, Equalizer, WaveMultiBandSplitter

Legacy IP components:
IpServer, IpBroadcastServer, IpBroadcastClient, MediaGate, ConferenceServer

RTP streaming components:
IPReceiver, IPTransmitter, RTPConfClient, RTPConfServer

Misc. components:
VolumeControl, DisplayBands


VCX Library 3.0 © 2012 Lake of Soft
All rights reserved.