Component NETEVENT_MANAGER
Component index
Section index

Component NETEVENT_MANAGER


Search

Type

Object

Summary

Synchronise various network services

Description

void add (HANDLE_SELECTS &sels)void idle (int since, bool &end, bool nojob)
void loop (int timeout)
void loopgui (int timeout, PRIVATE_MESSAGE &end)

Prototypes

NETEVENT_MANAGER ()

You define the object and then you add various sessions to manage

Methods

void add (HANDLE_SELECTS &sels)

Add a session to manage

A session may be a network session (TCPSERVER, TCPCONNECT) or a POPEN sesssion using POPENHANDLER

void loop (int timeout)

Let the object process the various events

void loopgui (int timeout, PRIVATE_MESSAGE &end)

Let the object process the various events

Works like loop() except that it waits for event while processing GUI events so the various uithreads (dialogs) are still alive.

Functags

void idle (int since, bool &end, bool nojob) Optional

Called after some idle period

You specify the timeout and you get called to perform various tasks once in a while.