HomeInterfacesRecipesChangelogFAQ
Log In
Interfaces

Technical Interface

How to open the stream using code

//We will store the LP data here
string data = "";
//The LP ip port
int ipPort = 44001;
//The installation location of LP
string ipAddress = "127.0.0.1";

TcpClient client = new TcpClient(ipAddress, ipPort);
StreamReader sr = new StreamReader(client.GetStream());

do
{
    //Read line from LP
    data = sr.ReadLine();
    //Dump the line of data
    Console.WriteLine(data);
}
while (data != null);
//No more data from socket, closing.
client.Close();
# We will store the LP data here
data = ""
# The LP IP port
ip_port = 44001
# The installation location of LP
ip_address = "127.0.0.1"

client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect((ip_address, ip_port))
sr = client.makefile('r')

while True:
    # Read line from LP
    data = sr.readline()
    # Dump the line of data
    print(data)
    if not data:
        # No more data from socket, closing.
        break

# Close the socket
client.close()

Using telnet in CMD

telnet 127.0.0.1 44001