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

BOOL PIndirectChannel::SetWriteChannel ( 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 write operations.
autoDelete  Automatically delete the channel

Definition at line 955 of file pchannel.cxx.

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

  channelPointerMutex.StartWrite();

  writeChannel = channel;
  writeAutoDelete = autoDelete;

  channelPointerMutex.EndWrite();

  return IsOpen();
}


Generated by  Doxygen 1.6.0   Back to index