SecureServer Object : Send Event |
WARNING Timeout must be 0 when calling methods from within an event. Failure to observe this rule may cause reentrancy problems and unpredictable results.
Each time the Send method is used, data is stored in a buffer and submitted to the system for sending. Between the time the Send method is called and the Send event fires, SendBufferCount is a positive value that indicates how many bytes are currently in this queue. This event fires each time SendBufferCount decreases because the system has accepted more data.
Use this method for outbound spooling tasks, such as sending a file over the network. Each time the Send event fires, read the next file segment from disk and send it.