Discuss this help topic in SecureBlackbox Forum

TElWebSocketBase.SendData

TElWebSocketBase     See also     


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


Sends arbitrary data to the peer.

Declaration

[C#]
    void SendData(byte[] Buffer);
    void SendData(byte[] Buffer, int StartIndex, int Count);
    void SendData(System.IO.Stream Strm);
    void SendData(System.IO.Stream Strm, int OpCode);

[VB.NET]
    Sub SendData(ByVal Buffer As Byte())
    Sub SendData(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer)
    Sub SendData(ByVal Strm As System.IO.Stream)
    Sub SendData(ByVal Strm As System.IO.Stream, ByVal OpCode As Integer)

[Pascal]
    procedure SendData(const Buffer : ByteArray);
    procedure SendData(const Buffer : ByteArray; StartIndex : integer; Count : integer);
    procedure SendData(const Strm : TStream);
    procedure SendData(const Strm : TStream; OpCode : integer);

[C++]
    void SendData(const std::vector<uint8_t> &Buffer);
    void SendData(const std::vector<uint8_t> &Buffer, int32_t StartIndex, int32_t Count);
    void SendData(const TStream &Strm);
    void SendData(const TStream *Strm);
    void SendData(const TStream &Strm, int32_t OpCode);
    void SendData(const TStream *Strm, int32_t OpCode);

[PHP]
    void SendData(array of byte|string|NULL $Buffer)
    void SendData(array of byte|string|NULL $Buffer, integer $StartIndex, integer $Count)
    void SendData(TStream $Strm)
    void SendData(TStream $Strm, integer $OpCode)

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

Parameters

  • Buffer - the buffer containing the data to be sent.
  • StartIndex - specifies the position of the data to be sent in Buffer.
  • Count - specifies the number of bytes to be read from Buffer.
  • Strm - the stream containing the data to be sent.
  • OpCode - specifies the type of the data to be sent (opcode as defined in RFC 6455).

WebSocket operation codes:

Description

    Use this method to send arbitrary data to the peer.

See also:     SendText     onBeforeMessageSend    

Discuss this help topic in SecureBlackbox Forum