News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Secure Socket StreamReader  
by Mike [mqjones at uwalumni dot com]
posted on 2005/01/03

I have implemented a SecureTcpClient with a servername and portNumber. I would like to read the stream using a StreamReader, however the stream that is returned from the GetStream call is of type SecureNetworkStream rather then System.IO.Stream.

Can a SecureNetworkStream be cast to type System.IO.Stream so that it can be read with a StreamReader, or is there a special StreamReader available that will take in type SecureNetworkStream?

Thanks, Mike

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2005/01/05

Yes, SecureNetworkStream inherits from Stream, so there should be no problems with using it in a StreamReader.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.