Description | Hierarchy | Fields | Methods | Properties |
type unaSTUNserver = class(unaSTUNagent)
STUN server
![]() |
function doYourJob(addr: PSockAddrIn; buf: pointer; dataLen: int): bool; override; |
![]() |
function readData(buf: pointer; maxSize: int; out addr: sockaddr_in): int; override; |
![]() |
procedure doOnResponse(addr: PSockAddrIn; req: punaSTUN_hdr); |
![]() |
procedure sendResponse(addr: PSockAddrIn; r: punaSTUN_hdr; _class, attr, datai: uint; const datas: wString; msg: int = C_STUN_MSGTYPE_BINDING); overload; |
![]() |
procedure sendResponse(addr: PSockAddrIn; r: punaSTUN_hdr; _class: int; attrs: pointer; attrsLen: int; msg: int = C_STUN_MSGTYPE_BINDING); overload; |
![]() |
procedure startIn(); override; |
![]() |
property numRequests: int64 read f_numReq; |
![]() |
property onResponse: unaSTUNServerOnResponse read f_onResponse write f_onResponse; |
![]() |
function doYourJob(addr: PSockAddrIn; buf: pointer; dataLen: int): bool; override; |
Process clients' requests |
![]() |
function readData(buf: pointer; maxSize: int; out addr: sockaddr_in): int; override; |
Reads data from server TCP socket |
![]() |
procedure doOnResponse(addr: PSockAddrIn; req: punaSTUN_hdr); |
Notifies of response |
![]() |
procedure sendResponse(addr: PSockAddrIn; r: punaSTUN_hdr; _class, attr, datai: uint; const datas: wString; msg: int = C_STUN_MSGTYPE_BINDING); overload; |
Sends response to client
Parameters
|
![]() |
procedure sendResponse(addr: PSockAddrIn; r: punaSTUN_hdr; _class: int; attrs: pointer; attrsLen: int; msg: int = C_STUN_MSGTYPE_BINDING); overload; |
Sends response to client
Parameters
|
![]() |
procedure startIn(); override; |
Start listening |
![]() |
property numRequests: int64 read f_numReq; |
Number of requsts handled by server |
![]() |
property onResponse: unaSTUNServerOnResponse read f_onResponse write f_onResponse; |
(c) 2012 Lake of Soft