Click here to Skip to main content
15,901,426 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dll callback and MFC help Pin
David Crow21-Mar-07 6:47
David Crow21-Mar-07 6:47 
GeneralRe: Dll callback and MFC help [modified] Pin
Van Ly Doc Hanh21-Mar-07 7:18
Van Ly Doc Hanh21-Mar-07 7:18 
AnswerRe: Dll callback and MFC help Pin
Eytukan21-Mar-07 7:26
Eytukan21-Mar-07 7:26 
GeneralRe: Dll callback and MFC help Pin
Laxman Auti21-Mar-07 6:51
Laxman Auti21-Mar-07 6:51 
QuestionDialog box message map entry Pin
GruenerSchreibtisch21-Mar-07 5:58
GruenerSchreibtisch21-Mar-07 5:58 
AnswerRe: Dialog box message map entry Pin
David Crow21-Mar-07 6:36
David Crow21-Mar-07 6:36 
QuestionWhat type of dll do i need for a Cold Fusion app to use Pin
LCI21-Mar-07 5:55
LCI21-Mar-07 5:55 
QuestionTCP/IP port marshalling (forwarding) Pin
agulbays21-Mar-07 5:11
agulbays21-Mar-07 5:11 
Hi friends,

I'm trying to forward a TCP/IP port (can be described dynamic) to MySQL port (3306).

Although i've written an MFC project using CASyncSocket to solve this problem. It works with Client/Server text communication based programs but it cannot fwd MySQL requests.

-Let me tell what i did:
1.Listen a port
2.Accept incoming connection (this is the incoming socket)
(for this accepted socket)
I.If receive any data Read max 100 byte packet
II. Add this packet to an array (vector)
III. A thread (consumer thread) checks this array's size
-if there's any packet sends it to 3306 by another CAsyncSocket
object (this is the outgoing socket)
IV. Same process for incoming data from 3306 to accepted socket

i wrote another Client/Server application which only acceps incoming requests and read their messages and echo it to themselves. This is a text based communication.

Result:
forwarder can't forward the data between app and MySQL host

i think main goal is binary data!

how can i do this

Could anyone help me?

Thanks lot,


QuestionRe: TCP/IP port marshalling (forwarding) Pin
Mark Salsbery21-Mar-07 6:55
Mark Salsbery21-Mar-07 6:55 
AnswerRe: TCP/IP port marshalling (forwarding) Pin
agulbays21-Mar-07 7:10
agulbays21-Mar-07 7:10 
GeneralRe: TCP/IP port marshalling (forwarding) Pin
Mark Salsbery21-Mar-07 7:48
Mark Salsbery21-Mar-07 7:48 
GeneralRe: TCP/IP port marshalling (forwarding) Pin
agulbays21-Mar-07 20:44
agulbays21-Mar-07 20:44 
GeneralRe: TCP/IP port marshalling (forwarding) Pin
Mark Salsbery22-Mar-07 6:52
Mark Salsbery22-Mar-07 6:52 
GeneralRe: TCP/IP port marshalling (forwarding)-THANX -this problem IS OVER Pin
agulbays22-Mar-07 0:53
agulbays22-Mar-07 0:53 
Questionstatic variables in stdafx.h Pin
werpa21-Mar-07 5:07
werpa21-Mar-07 5:07 
AnswerRe: static variables in stdafx.h Pin
toxcct21-Mar-07 5:13
toxcct21-Mar-07 5:13 
GeneralRe: static variables in stdafx.h Pin
werpa21-Mar-07 5:19
werpa21-Mar-07 5:19 
GeneralRe: static variables in stdafx.h Pin
David Crow21-Mar-07 6:31
David Crow21-Mar-07 6:31 
QuestionRe: static variables in stdafx.h Pin
David Crow21-Mar-07 5:15
David Crow21-Mar-07 5:15 
AnswerRe: static variables in stdafx.h Pin
werpa21-Mar-07 5:22
werpa21-Mar-07 5:22 
GeneralRe: static variables in stdafx.h Pin
toxcct21-Mar-07 5:29
toxcct21-Mar-07 5:29 
GeneralRe: static variables in stdafx.h Pin
David Crow21-Mar-07 5:31
David Crow21-Mar-07 5:31 
GeneralRe: static variables in stdafx.h Pin
werpa21-Mar-07 5:42
werpa21-Mar-07 5:42 
GeneralRe: static variables in stdafx.h Pin
David Crow21-Mar-07 5:51
David Crow21-Mar-07 5:51 
GeneralRe: static variables in stdafx.h Pin
werpa21-Mar-07 6:05
werpa21-Mar-07 6:05 

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.