Discuss this help topic in SecureBlackbox Forum

TElSSLServer.SendData

TElSSLServer     See also     


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


Sends the data to the remote host.

Declaration

[C#]
    void SendData(byte[] Buffer);
    void SendData(byte[] Buffer, int StartIndex, int Count);

[VB.NET]
    Sub SendData(ByVal Buffer As Byte())
    Sub SendData(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer)

[Pascal]
    procedure SendData(Buffer : Pointer; Size : LongInt);

[C++]
    void SendData(void * Buffer, int32_t Size);

[PHP]
    void SendData(TSBPointer|array of byte|string|NULL $Buffer, integer $Size)

[Java]
    void sendData(byte[] Buffer);
    void sendData(byte[] Buffer, int StartIndex, int Count);

Parameters

  • Buffer - pointer to the data buffer that is to be sent.
  • Size - length of the data buffer in bytes
  • StartIndex - the start position in the Buffer from which the data must be read.
  • Count - number of bytes to be read.

Description

    Use this method to send the data to the client. TElSSLServer encrypts the data (if Enabled property is true) and then fires OnSend event to write the encrypted block to the socket.
    The application needs to write the data to the socket only in OnSend event handler.

See also:     Enabled     TElSSLClass.OnSend    

Discuss this help topic in SecureBlackbox Forum