Discuss this help topic in SecureBlackbox Forum

TElSocket.CanReceive

TElSocket     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Checks if the data can be received.

Declaration

[C#]
    bool CanReceive(int WaitTime);

[VB.NET]
    Function CanReceive(ByVal WaitTime As Integer) As Boolean

[Pascal]
    function CanReceive(WaitTime : integer := 0) : boolean;

[C++]
    bool CanReceive(int32_t WaitTime);

[PHP]
    bool CanReceive(integer $WaitTime)

[Java]
    boolean canReceive(int WaitTime);

Parameters

  • WaitTime - Time in milliseconds to wait. The value set to -1 means infinite waiting, set to 0 means no waiting at all.

Description

    Use this method to check whether there's any data available to be received. Set WaitTime parameter to time, which the call will wait, if there's no data available at the moment. Set WaitTime to 0 for no wait and to -1 to wait until the data appears, the socket is closed or error happens.

See also:     Receive     CanSend    

Discuss this help topic in SecureBlackbox Forum