Click here to Skip to main content
15,922,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CAsyncSockets Pin
Moak18-Mar-03 1:40
Moak18-Mar-03 1:40 
GeneralRe: CAsyncSockets Pin
chrisedgington18-Mar-03 23:18
chrisedgington18-Mar-03 23:18 
GeneralRe: CAsyncSockets Pin
Moak19-Mar-03 3:36
Moak19-Mar-03 3:36 
GeneralRe: CAsyncSockets Pin
chrisedgington19-Mar-03 4:31
chrisedgington19-Mar-03 4:31 
GeneralRe: CAsyncSockets Pin
Moak19-Mar-03 4:47
Moak19-Mar-03 4:47 
GeneralRe: CAsyncSockets Pin
chrisedgington19-Mar-03 4:58
chrisedgington19-Mar-03 4:58 
GeneralRe: CAsyncSockets Pin
Moak19-Mar-03 5:08
Moak19-Mar-03 5:08 
GeneralRe: CAsyncSockets Pin
chrisedgington19-Mar-03 6:07
chrisedgington19-Mar-03 6:07 
That's ok. You sir have been a great help. If you feel like helping more; you might like to tell me why OnAccept and my other member functions are not being called? I have set up a beginsend and a beginreceive function in the document class, which do the following:

beginsend:
<br />
{<br />
        int status=0;<br />
	//Used for debug<br />
	Mydamnsocket Myskt;<br />
	//Creates an AsyncSocket object<br />
	int nPort = 5001;<br />
	//Specifies the port number to connect to<br />
	CString IPAddy="127.0.0.1";<br />
	//Creates a CString object with address<br />
	Myskt.Create();<br />
	//Creates a socket<br />
	Myskt.Connect(IPAddy,nPort);<br />
        //Connects the socket<br />
        return status;<br />
}<br />

beginrecieve:
<br />
{<br />
        int status = 0;<br />
	//Used for debug<br />
	Mydamnsocket Myskt;<br />
        //creates a socket<br />
        Myskt.Create(5001);<br />
        //turns the socket to port # 5001<br />
        Myskt.Listen();<br />
        //makes the bugger listen<br />
        return status;<br />
}<br />


So the user kindly runs up two of these apps and hits recieve in one and send in the other-thus calling these functions. If I watch developments in the Debugger with a few cleverly placed breakpoints (well actually, every darn line at the moment), I would expect to see the program jump into my Mydamnsocket class and the onaccept member function; but it doesn't-it just sits there. This is somewhat puzzling and is stopping me from getting anywhere. Once I can get the functions called I should pretty much be there with this.
Plenty Smile | :) beer for you if you can help?
GeneralWin 32 Tooltip Pin
Anonymous17-Mar-03 12:18
Anonymous17-Mar-03 12:18 
GeneralRe: Win 32 Tooltip Pin
Neville Franks17-Mar-03 17:44
Neville Franks17-Mar-03 17:44 
GeneralRe: Win 32 Tooltip Pin
georgiek5017-Mar-03 22:46
georgiek5017-Mar-03 22:46 
GeneralRe: Win 32 Tooltip Pin
Neville Franks17-Mar-03 23:35
Neville Franks17-Mar-03 23:35 
GeneralRe: Win 32 Tooltip Pin
georgiek5018-Mar-03 1:28
georgiek5018-Mar-03 1:28 
GeneralReal quick question... Pin
CherezZaboro17-Mar-03 12:16
CherezZaboro17-Mar-03 12:16 
GeneralRe: Real quick question... Pin
_Theo_18-Mar-03 0:14
_Theo_18-Mar-03 0:14 
GeneralRe: Real quick question... Pin
Lakitu18-Mar-03 0:16
Lakitu18-Mar-03 0:16 
QuestionDisable overlay for a MCI window ? Pin
squizz17-Mar-03 11:41
squizz17-Mar-03 11:41 
QuestionOnItemChanged() - how to "reset" it? Pin
ns17-Mar-03 10:59
ns17-Mar-03 10:59 
AnswerRe: OnItemChanged() - how to "reset" it? Pin
Ravi Bhavnani17-Mar-03 11:11
professionalRavi Bhavnani17-Mar-03 11:11 
GeneralRe: OnItemChanged() - how to "reset" it? Pin
ns17-Mar-03 11:14
ns17-Mar-03 11:14 
GeneralRe: OnItemChanged() - how to "reset" it? Pin
Ravi Bhavnani17-Mar-03 11:37
professionalRavi Bhavnani17-Mar-03 11:37 
GeneralRe: OnItemChanged() - how to "reset" it? Pin
nss17-Mar-03 12:18
nss17-Mar-03 12:18 
GeneralColumns in CListCtrl Pin
MemLeak17-Mar-03 10:26
MemLeak17-Mar-03 10:26 
GeneralRe: Columns in CListCtrl Pin
valikac17-Mar-03 11:35
valikac17-Mar-03 11:35 
GeneralRe: Columns in CListCtrl Pin
Abin17-Mar-03 14:32
Abin17-Mar-03 14:32 

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.