Application(GUI) and sockets(other blocking things)

This is a discussion on Application(GUI) and sockets(other blocking things) within the Windows Programming forums, part of the Platform Specific Boards category; Hello to all, I have a "general" question. I write a program that interacts with Internet (C++, WinApi (including GUI), ...

  1. #1
    LMZ
    LMZ is offline
    Registered User
    Join Date
    Oct 2005
    Posts
    35

    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
    Location
    Toronto
    Posts
    591
    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
    Posts
    8,892
    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!
    CornedBee

    "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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21