Discuss this help topic in SecureBlackbox Forum

TElSocket.Send

TElSocket     See also     


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


Sends TCP data to the connected socket.

Declaration

[C#]
    int Send(byte[] Data, int Start, int Len, ref int Sent);

[VB.NET]
    Function Send(ByVal Data As Byte(), ByVal Start As Integer, ByVal Len As Integer, ByRef Sent As Integer) As Integer

[Pascal]
    function Send(Data : pointer; DataLen : integer; var Sent : integer) : integer;

[C++]
    int32_t Send(void * Data, int32_t DataLen, int32_t &Sent);

[PHP]
    integer Send(TSBPointer|array of byte|string|NULL $Data, integer $DataLen, integer &$Sent)

[Java]
    int send(byte[] Data, int Start, int Len, int[] Sent);
    int send(byte[] Data, int Start, int Len, TSBInteger Sent);

Parameters

  • Data - buffer containing the data to be sent
  • Start - index of the first byte in the buffer of the data to be sent
  • DataLen (Len) - length of the data to be sent in bytes
  • Sent - specifies the number of bytes that has been sent
  • Len -

Return value

    Returns 0 on success or socket error code otherwise.
    In .NET, if an exception has been raised, -1 may be returned.

Description

    Use this method to send TCP data to the connected socket. This operation is possible only when the socket is in issConnected state.

See also:     SendTo     CanSend     Receive    

Discuss this help topic in SecureBlackbox Forum