Warning: Declaration of action_plugin_acl::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php on line 15

Warning: Declaration of action_plugin_description::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/description/action.php on line 0

Warning: Declaration of action_plugin_googleanalytics::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/googleanalytics/action.php on line 0

Warning: Declaration of action_plugin_keywords::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/keywords/action.php on line 0

Warning: Declaration of action_plugin_popularity::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/popularity/action.php on line 0

Warning: Declaration of action_plugin_safefnrecode::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/safefnrecode/action.php on line 0

Warning: Declaration of action_plugin_translation::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/translation/action.php on line 0

Warning: Declaration of action_plugin_authad::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/authad/action.php on line 0

Warning: Declaration of action_plugin_extension::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/extension/action.php on line 0

Warning: Declaration of action_plugin_styling::register(Doku_Event_Handler $controller) should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/styling/action.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/inc/actions.php on line 38

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iptv.gen12/public_html/dokuwiki/lib/plugins/acl/action.php:15) in /var/www/iptv.gen12/public_html/dokuwiki/lib/tpl/dokuwiki/main.php on line 12
TcpServer [SimpleTV]

Инструменты сайта


mantis:simpletv:api:tcpserver

TcpServer

SimpleTV ver
SimpleTV v.0.4.8 b9 or above

object = CreateServer(table params)

Description
Create tcp server
Parameters
table of a parameters
Example
local p={}
p.address = '127.0.0.1'
p.service = '1234'
p.eventfunction = "TestTCPServer"
local server = m_simpleTV.TcpServer.CreateServer(p)
if server==nil then ERROR end

function TestTCPServer(Object,Event,Data) --event function
 debug_in_file("event - " .. Event .. '\n')
 debug_in_file("data - " .. Data .. '\n\n')
end 
List of events
'Accept'  -  Client connected to server
'End'     -  Client disconnected  
'Receive' -  On received data (Data parameter is valid)
'Error'   -  On error (Data parameter is error string)

CloseServer(ServerObject)

Description
Close tcp server
Parameters
ServerObject - object, returned by CreateServer

boolean = Send(ServerObject,string data)

Description
Send data to client
Parameters

number = GetWsaError(ServerObject)

Description
return last WSA error
Parameters
mantis/simpletv/api/tcpserver.txt · Последние изменения: 26/03/2015 20:41 — SergeyVS