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
 
SecureSocket from an already accepted Socket  
by Daniel [dag at pranke dot com]
posted on 2005/09/26

Hi,

I did not get a glue, if and how I can have a secure Socket based on the (already accepted) Socket I get from my Communication server?

Could you give me a short hint on how to use this internal SecureSocket Constructor, that seems to do what I would like to do but from the outside?

regards,

Daniel

by Dmytro
posted on 2005/10/19

well once you accept, you can pass the Socket to another class useing a variable called Object, (cuz object can be anything)

---------------------------------
Dim webproxy As HTTPSocket = New HTTPSocket(Socket)

Dim thread As New Thread(New ThreadStart(AddressOf webproxy.run))
thread.Start()

--------------------------
that class HTTPServer will have a variable " Private clientSocket As Object"

and
-----------
Public Sub New(ByVal socket As Object)

Me.clientSocket = socket

End Sub
---------
Hope it helps

 

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