Oberon || Library || Module Index || Search Engine || Definition || Module
CONST setTimeoutCmd = 0; CONST resetCmd = 1; CONST startTransferCmd = 2; CONST endOfTransferCmd = 3; TYPE Event = POINTER TO EventRec; TYPE EventRec = RECORD (Events.EventRec) cmd: SHORTINT; (* setTimeoutCmd .. endOfTransferCmd *) timeout: Times.Time; END;
PROCEDURE GetEventType(session: FTPSessions.Session; VAR eventType: Events.EventType);
PROCEDURE SetTimeout(session: FTPSessions.Session; period: Times.Time); PROCEDURE Reset(session: FTPSessions.Session); PROCEDURE StartTransfer(session: FTPSessions.Session); PROCEDURE EndOfTransfer(session: FTPSessions.Session);
Reset resets the current timer, if defined, to 0. This operation is to be called when input from the FTP client is seen to measure the time of inactivity.
Timeouts should not hit during file transfers (either downloads or uploads) as the main network connection remains inactive for longer time. StartTransfer and EndOfTransfer allow to signal such time periods to the timeout management.
Event handling tasks should be aware of the termination of the session object, see Resources.
Oberon || Library || Module Index || Search Engine || Definition || Module