|
-
August 14th, 1999, 04:44 AM
#1
CAsyncSocket????????
Hello,
This (probably simple) AsyncSocket problem that ive been having is driving me outta my mind.....
Can anybody tell me what im doing wrong here.
All i want my program to do i to make a simple socket connection to another computer via ip# and eventually transfer say a file.
But before i can do all that, im trying to just get the socket connection going.
So far, i have both server and client functions..
Server:
CListenerSocket sockSrvr ;
sockSrvr.Create(700);
sockSrvr.Listen();
Client:
CAsyncSocket sockClient;
if(sockClient.Connect(varthatismyip, 700))
AfxMessageBox("Success");
else
AfxMessageBox("Failure");
Also, the CListenerSocket is a class i derived from CAsyncSocket and overided the OnAccept function (i read that i had to do that)
So far, all its been giving me are "failures". For now i just want it to successfully connect. What am i doing incorrectly or missing?
Thanks for your time
P.S Also, if you have any bits of knowledge about send data, such as a file, over after the successful connection id greatly appeciate it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|