Hi,
Is it possible for me to use TCP connection to call to .NET. I am setup a sample TCP IP server on .NET. Can someone tell me what I am doing wrong here?
I am trying to send message va CnTcpConnection but getting the following error:
2018/11/05 12:16:14.990: >>>>:AA/193: Error=31011 : Connection invalid state for requested operation : last action : Write
2018/11/05 12:16:14.990: >>>>:AA/193: Wrong connection state for cnOpen : state=1
2018/11/05 12:16:16.003: >>>>:AA/193: TCP error on connection #1 : client host was localhost on port 8888
2018/11/05 12:16:16.004: >>>>:AA/193: Error=31004 : Connection failed to connect : last action : Open
JADE CODE:
vars
vTCP : CnTcpConnection;
begin
app.initialize;
create vTCP transient;
vTCP.close;
vTCP.cnOpen('localhost',8888, vTCP);
vTCP.cnWrite('test'.Binary, vTCP);
.NET CODE
TcpListener serverSocket = new TcpListener(8888);
int requestCount = 0;
TcpClient clientSocket = default(TcpClient);
serverSocket.Start();
Console.WriteLine(" >> Server Started");
clientSocket = serverSocket.AcceptTcpClient();
Console.WriteLine(" >> Accept connection from client");
requestCount = 0;
Thaban