Results 1 to 2 of 2

Thread: Need help with Sockets

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    3

    Question Need help with Sockets

    Ok, here is the problem,
    I have set up a server type socket using CSocket
    I have a client app that will connect to it, but on the server side
    when I start the socket it gets to the accept statement:
    example: if(Server.Accept(ClientSocket))

    Why does the Dialog box It is in freeze up until the client program connects? and is there a way to fix it so that I can do other things on the Form while it is running the socket, for example stop the socket, or even just move the form around.

    While the socket is listening for connections I can't do anything...
    Can someone please help??
    Rick Mathers

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Start a new thread. I'm not an MFC user, but look at CWinThread.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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