Thread: Application(GUI) and sockets(other blocking things)

  1. #1
    Registered User
    Join Date
    Oct 2005

    Application(GUI) and sockets(other blocking things)

    Hello to all, I have a "general" question.
    I write a program that interacts with Internet (C++, WinApi (including GUI), Sockets).
    How I can interact sockets answers (connect, receive, etc) with my application.
    Mmm... I 'm talking about threads, maybe, I don't know how "in general" I can do it.
    True OOP solutions would be great.
    im from LMoldovaZ

  2. #2
    Registered Abuser
    Join Date
    Jun 2006
    I know java's implementations of Sockets is highly OO and nice to use, but if it's a winapi solution you're looking for, WinSock might be a good place to start looking.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    On the low-level, such stuff is done using threads. You typically reserve the main thread for the GUI, doing all processing that lasts a noticeable time in the background. Exception: processes that must not be interrupted by the user, such as saving and loading.
    But network connections are definitely things for the background.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed