Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to properly use piped streams

Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the skinny:
Say I have a socket client & server running, and I want to add a layer of encryption. I modify the client to encrypt the output, but I don't want to modify the server. So what I'm doing is making a pass-through sort of server that does the decryption for me, then passes the decrypted stuff to the server. This is really a question more about streams than sockets. So what I'm doing in the pass-through is receiving a socket connection from the client, and opening a socket on the server, then decrypting the stream as it passes through. I got some piped stream examples off the internet, but I am failing to get them to work. Anybody here have experience using piped streams, and want to give me a few pointers?
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic