CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 1999
    Location
    ks
    Posts
    524

    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

  2. #2
    Join Date
    Feb 2009
    Location
    India
    Posts
    444

    Re: test CAsyncSocket over the internet

    How about writing a simple desktop server or picking one from the samples.
    «_Superman
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

  3. #3
    Join Date
    Oct 1999
    Location
    ks
    Posts
    524

    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
  •  





Click Here to Expand Forum to Full Width

Featured