|
-
March 22nd, 2009, 05:51 PM
#1
test CAsyncSocket over the internet
my guess is i will have a slight glitch in winsock functionalityfixed rather shortly. would appreciate any insight on how i would test a simple send/receive process over the internet. i clearly have a desktop client - what would i need to get a test going over the interned?
appreciate any insight or direction to other sources.
thanks - j
-
March 23rd, 2009, 05:19 AM
#2
Re: test CAsyncSocket over the internet
How about writing a simple desktop server or picking one from the samples.
-
March 23rd, 2009, 01:52 PM
#3
Re: test CAsyncSocket over the internet
that is precisely what i have tried to do an failed for the past week. first attempt was to replicate the client server paradigm on a desk top right out of sams .. in 21 days. per the sample, i set the server name to LooBack and port to 4000 at set the app in motion as a server. then i used the same parms and set another version of the app as a client. any attempt to communicate fails - GetLastError returns WSAEWOULDBLOCK whose expl is basically that the socket is nonblocking but the connection was not made immediately. the two versions of the app are at least talking to each other
as the server side is launching events associated with the OnAccept() fn.
i then googled for examples of a desktop demo and was directed to a codeguru article that claimed to have a working project in a "MFCSOCK" folder.
i downloaded this, compiled in release mode, and attempted to run it.
i used LoopBack as the name and 5000 (supplied) by the app and the first attempt i tried seemed to have the ability to have the server send msg to the client but not vice versa. subsequent launches did not behave at all and issued error messages about failed connections. i have changed no code in the dowloaded project.
so again, does anyone with first hand experience of a working demo know where i can get it? thanks - j
Last edited by jim enright; March 23rd, 2009 at 01:55 PM.
Reason: fix
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
|