Discuss this help topic in SecureBlackbox Forum


TElDTLSServerFactory     See also     

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

Processes the request received from the client.


    void ProcessRequest(byte[] Buffer, int StartIndex, int Size, byte[] ClientID);

    Sub ProcessRequest(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Size As Integer, ByVal ClientID As Byte())

    procedure ProcessRequest(Buffer : pointer; Size : integer; const ClientID : ByteArray);

    void ProcessRequest(void * Buffer, int32_t Size, const std::vector<uint8_t> &ClientID);

    void ProcessRequest(TSBPointer|array of byte|string|NULL $Buffer, integer $Size, array of byte|string|NULL $ClientID)

    void processRequest(byte[] Buffer, int StartIndex, int Size, byte[] ClientID);


  • Buffer - buffer containing client's request
  • Size - Size of the Buffer in bytes
  • StartIndex - the index of the first byte of the request in Buffer
  • ClientID - a unique ID of the incoming connection. It is strongly recommended to combine this value from both client's IP and port number, e.g., "".


    This method is used to process requests from clients. When a datagram from a new client is received (ClientHello message), user should generate a unique client's ID and pass the datagram and ClientID as parameters to the method. It generates a cookie and sends it back to the client. This cookie contains a unique ID of the client. The client should retransmit a ClientHello message with a cookie added. If the valid value is received, TElDTLSServerFactory creates a DTLS server and fires OnServerCreated event.

See also:     OnSend     OnServerCreated    

Discuss this help topic in SecureBlackbox Forum