API access of main functions


interface: socket
ip: 46.173.208.127
port: 9999
character encoding: UTF8

How to access


  1. connect to the server;
  2. send a query string ending with the zero byte;
  3. receive the response string ending with the zero byte;
  4. close the connection.

List of API accessible functions


List of arguments


Examples of query strings


Example of implementation


PHP
$host = 46.173.208.127;
$port = 9999;
$waitTimeoutInSeconds = 8;
$fp = @fsockopen($host,$port,$errCode,$errStr,$waitTimeoutInSeconds);
if ($fp) 
{
	fwrite ($fp, "ru_noun;машина;cr;nx"."\0");
	$response = fread($fp, 10000); 
	echo($response);
}
//Output: машин

Function testing