Click here to Skip to main content
15,904,986 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHWND in Dialog based application Pin
-alok-18-May-04 0:07
suss-alok-18-May-04 0:07 
GeneralRe: HWND in Dialog based application Pin
jmkhael18-May-04 0:24
jmkhael18-May-04 0:24 
GeneralRe: HWND in Dialog based application Pin
Roger Stoltz18-May-04 0:39
Roger Stoltz18-May-04 0:39 
GeneralRe: HWND in Dialog based application Pin
David Crow18-May-04 2:24
David Crow18-May-04 2:24 
GeneralRe: HWND in Dialog based application Pin
-alok-18-May-04 15:55
suss-alok-18-May-04 15:55 
GeneralRe: HWND in Dialog based application Pin
Roger Stoltz18-May-04 23:22
Roger Stoltz18-May-04 23:22 
GeneralRe: HWND in Dialog based application Pin
David Crow19-May-04 2:19
David Crow19-May-04 2:19 
QuestionHow to tell the length of an SSL Stream... ? Pin
Peejay17-May-04 22:58
Peejay17-May-04 22:58 
Hi All

I'm a bit of a network newbie, so sorry if this is a dumb question:

I'm writing a simple proxy server which needs to handle http and ssl tunnelling (for https requests) I've got the basic http stuff done, but I'm having trouble with the tunnelling and wondering if anyone out there can give me some pointers..

I get the request from the client:

CONNECT secure.some_host.com:443 HTTP/1.0
<Some Headers>
CRLF

I connect to secure.some_host.com on port 443, and if successful, return following to the client:

HTTP/1.0 200 Connection Established
CRLF

I then wait for the client to send the data, which in this case will be an SSL stream, but if I understand correctly could be anything at all, it doesn't matter I just forward everything blindly on to the server, Likewise after I've sent this off to the server I then forward everything I receive back to the client. I assume I just carry on doing this until the server closes the socket.

My problem here is: How do I know how big the stream is from the client / server so I can recv() until I've got it all?

Its a windows based app ( Although running in a console for now ) Using c++ / MFC but using my own Socket wrapper rather than MFC's CSocket


Thanks

Pj

AnswerRe: How to tell the length of an SSL Stream... ? Pin
toxcct18-May-04 2:49
toxcct18-May-04 2:49 
GeneralRe: How to tell the length of an SSL Stream... ? Pin
Peejay18-May-04 3:13
Peejay18-May-04 3:13 
GeneralRe: How to tell the length of an SSL Stream... ? Pin
toxcct18-May-04 3:33
toxcct18-May-04 3:33 
Questionhow the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:02
**bamboo**17-May-04 22:02 
AnswerRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
toxcct17-May-04 22:15
toxcct17-May-04 22:15 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:21
**bamboo**17-May-04 22:21 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
toxcct17-May-04 22:38
toxcct17-May-04 22:38 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:41
**bamboo**17-May-04 22:41 
AnswerRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
Prakash Nadar17-May-04 22:25
Prakash Nadar17-May-04 22:25 
AnswerRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
**bamboo**17-May-04 22:34
**bamboo**17-May-04 22:34 
GeneralRe: how the tcp server retrieve the clients which connected to it? (help..help...help..) Pin
Prakash Nadar17-May-04 23:00
Prakash Nadar17-May-04 23:00 
QuestionHow to select a folder in vc++(MFC) Pin
shiva shankar17-May-04 21:45
shiva shankar17-May-04 21:45 
AnswerRe: How to select a folder in vc++(MFC) Pin
Prakash Nadar17-May-04 21:50
Prakash Nadar17-May-04 21:50 
GeneralChat Server Pin
Rassul Yunussov17-May-04 21:32
Rassul Yunussov17-May-04 21:32 
GeneralThumbnail View Pin
chakk17-May-04 21:28
chakk17-May-04 21:28 
GeneralRe: Thumbnail View Pin
alex.barylski17-May-04 21:38
alex.barylski17-May-04 21:38 
GeneralVideo Capture Problem Pin
tunerica17-May-04 21:10
tunerica17-May-04 21:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.