Home Units Hierarchy Routines All identifiers

Class unaSTUNClient_req

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaSTUNClient_req = class(unaObject)

Description

STUN Client request

Hierarchy

Overview

Methods

Public constructor create(method: int; attrs: pointer; len: int; socket: unaSocket = nil; event: tHandle = 0);
Public destructor Destroy(); override;
Public function sameTrans(hdr: punaSTUN_hdr): bool;

Properties

Public property event: tHandle read f_event;
Public property fatalError: bool read f_fatalError;
Public property request: punaSTUN_hdr read f_data;
Public property response: punaSTUN_hdr read f_response;
Public property socket: unaSocket read f_socket;

Description

Methods

Public constructor create(method: int; attrs: pointer; len: int; socket: unaSocket = nil; event: tHandle = 0);
 
Public destructor Destroy(); override;
 
Public function sameTrans(hdr: punaSTUN_hdr): bool;

Check if hdr has same transaction ID as request If same, will also store hdr as response

Parameters
hdr
response
Returns

True if transaction id is the same

Properties

Public property event: tHandle read f_event;

Event to set when response is received

Public property fatalError: bool read f_fatalError;

True if no response was received and some fatal error occured (like server is down)

Public property request: punaSTUN_hdr read f_data;

Original request

Public property response: punaSTUN_hdr read f_response;

Response

Public property socket: unaSocket read f_socket;

External socket

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09