Discuss this help topic in SecureBlackbox Forum

TElSocket.CanSend

TElSocket     See also     


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


Checks if the data can be sent.

Declaration

[C#]
    bool CanSend(int WaitTime);

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

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

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

[PHP]
    bool CanSend(integer $WaitTime)

[Java]
    boolean canSend(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 the data can be sent (the socket is connected and/or ready for sending) Set WaitTime parameter to time, which the call will wait, until the socket is connected or until pending data in the outgoing buffer is sent. Set WaitTime to 0 for no wait and to -1 to wait until sending is possible, the socket is closed or error happens.

See also:     Receive     CanReceive    

Discuss this help topic in SecureBlackbox Forum