Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Programmatically adding route (CreateIPForwardEntry) Pin
Martijn22-Jan-02 23:09
Martijn22-Jan-02 23:09 
GeneralRe: Programmatically adding route (CreateIPForwardEntry) Pin
Jon Hulatt22-Jan-02 23:32
Jon Hulatt22-Jan-02 23:32 
GeneralRe: Programmatically adding route (CreateIPForwardEntry) Pin
Martijn23-Jan-02 0:58
Martijn23-Jan-02 0:58 
GeneralRe: Programmatically adding route (CreateIPForwardEntry) Pin
Jon Hulatt23-Jan-02 1:04
Jon Hulatt23-Jan-02 1:04 
GeneralRe: Programmatically adding route (CreateIPForwardEntry) Pin
Martijn23-Jan-02 1:12
Martijn23-Jan-02 1:12 
QuestionIs there anybody who knows how to program using the BHO(Browser helper object)? Pin
gropex22-Jan-02 18:39
gropex22-Jan-02 18:39 
AnswerRe: Is there anybody who knows how to program using the BHO(Browser helper object)? Pin
Michael P Butler23-Jan-02 0:50
Michael P Butler23-Jan-02 0:50 
GeneralCAsyncSocket trouble Pin
Craig S22-Jan-02 18:31
Craig S22-Jan-02 18:31 
I'm making a client and server program. So far the server works great, but the client is having a little trouble. The problem is coming from 2 connection classes, which are both derived from CBaseSocket which is derived from CAsyncSocket.

One of the classes is CListen and the other is CMessage. CListen listens for a connection and CMessage sends messages to another client program.

Right now, CListen will receive a message from another client program through the socket that basically says "I want to send a message to you, reply please."

CListen then does this:


CBaseSocket *anothersocket;
if(message == "I want to send a message to you")
{
anothersocket = new CMessage();
}

SOCKET socktemp = Detach();
CString sendstring = "Ok, send the message on this socket!";
anothersocket->AttachToSocketAndSend(socktemp, sendstring);


The AttachToSocketAndSend function 'Attach's the CMessage object to the socket and then sends the message.

Basically I want this to transfer control of the socket to the CMessage object. I want the CMessage's OnReceive function to be triggered when the other client sends more data. My problem is that whenever data is received through the the socket, it gets routed to CListen's OnReceive() function (instead of CMessage's.. I want CMessage to handle the received data now)

Can anyone help?Confused | :confused:
GeneralService - CreateService Pin
22-Jan-02 12:44
suss22-Jan-02 12:44 
GeneralRe: Service - CreateService Pin
Michael Dunn22-Jan-02 13:04
sitebuilderMichael Dunn22-Jan-02 13:04 
GeneralMulitline Edit Box on a Wizard Pin
RK_200022-Jan-02 10:51
RK_200022-Jan-02 10:51 
GeneralMS Agents in C++ Pin
MaTrIX2k222-Jan-02 10:45
MaTrIX2k222-Jan-02 10:45 
GeneralRe: MS Agents in C++ Pin
Michael P Butler23-Jan-02 0:56
Michael P Butler23-Jan-02 0:56 
GeneralCSplitterWnd Question Pin
borland22-Jan-02 10:34
borland22-Jan-02 10:34 
GeneralRe: CSplitterWnd Question Pin
borland22-Jan-02 17:05
borland22-Jan-02 17:05 
GeneralRe: CSplitterWnd Question Pin
Jonnie White23-Jan-02 0:45
Jonnie White23-Jan-02 0:45 
GeneralRe: CSplitterWnd Question Pin
borland23-Jan-02 2:34
borland23-Jan-02 2:34 
GeneralGDI+ Pin
AJ12322-Jan-02 10:29
AJ12322-Jan-02 10:29 
GeneralRe: GDI+ Pin
Christian Graus22-Jan-02 10:35
protectorChristian Graus22-Jan-02 10:35 
GeneralRe: GDI+ Pin
AJ12322-Jan-02 11:09
AJ12322-Jan-02 11:09 
GeneralRe: GDI+ Pin
Christian Graus22-Jan-02 11:27
protectorChristian Graus22-Jan-02 11:27 
GeneralWhen to Detach a async socket Pin
tfElep22-Jan-02 10:01
tfElep22-Jan-02 10:01 
QuestionDumb Question? Pin
22-Jan-02 9:37
suss22-Jan-02 9:37 
AnswerRe: Dumb Question? Pin
Christian Graus22-Jan-02 9:55
protectorChristian Graus22-Jan-02 9:55 
GeneralRe: Dumb Question? Pin
22-Jan-02 10:04
suss22-Jan-02 10:04 

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.