Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PIndirectChannel::SetReadChannel ( PChannel channel,
BOOL  autoDelete = TRUE 
) [inherited]

Set the channel for read operations.

Returns:
Returns TRUE if both channels are set and are both open.
Parameters:
channel  Channel to be used for both read operations.
autoDelete  Automatically delete the channel

Definition at line 939 of file pchannel.cxx.

{
  if (readChannel != NULL)
    return SetErrorValues(DeviceInUse, EEXIST);

  channelPointerMutex.StartWrite();

  readChannel = channel;
  readAutoDelete = autoDelete;

  channelPointerMutex.EndWrite();

  return IsOpen();
}


Generated by  Doxygen 1.6.0   Back to index