1.

Explain Duplex and Transform streams?

Answer»

DUPLEX: Duplex streams are streams that implement both readable and WRITABLE interfaces

Examples:

  1. TCP sockets
  2. zlib streams ( Compression LIBRARY functionality streams)
  3. cypto streams ( Cryptography functionality streams)

Transform: A type of duplex streams where output is in someway related to the input. LIKE duplex streams, Transform streams also implement both Readable and Writable interfaces.

Examples: 

  1. zlib streams ( Compression library functionality streams)
  2. cypto streams ( Cryptography functionality streams)


Discussion

No Comment Found