does anybody knows where i could find some MFC TCP CAsyncSocket client/server good examples ? i have searched everywhere and i can't find any good example everywhere i look i find different things
thanks
does anybody knows where i could find some MFC TCP CAsyncSocket client/server good examples ? i have searched everywhere and i can't find any good example everywhere i look i find different things
thanks
Try posting this in the network section and maybe you'll get some replies. Sorry I can't help you more, but I don't know much bout sockets. However, try www.gametutorials.com, they have some network tutorials i believe. Hopefully they have what you are looking for.
thx, maybe the moderators will move this thread there :P
MSDN: CAsyncSocket
There are two example programs.
gg
Moved to network board
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
already knew it, its for .net :P i only use 6.0 and i kinda know how to make a server work just dunno about the client thanks anyway
The MFC 6.0 CAsyncSocket is the same as the MFC 7.0 version. The CHATSRVR example has a cooresponding client application.
There is plenty of MFC documentation on how it wraps socket functionality, so if you understand sockets then using the wrappers is just a matter of reading the documentation.
gg
oh ok thx ill have a look at it
hmm cant edit my last post anyway so i kinda understood how it works but how do you make the OnConnect, OnError... etc events work for this.. :
it connects and then it closes connection itself.. and i noticed it creates an UDP listening port then closes it anybody know why ?Code:CAsyncSocket sock; sock.Create(); sock.Connect("yahoo.com",80);
i hope you guys understand what im trying to say, sorry im just trying to learn how mfc/c++ works
thanks