T
~toki
I have a full work app (server and client) that talk between two executables
trought Console.WriteLine(); & Console.ReadLine();
I have the source code of the server.
I need to make the client. To do this i have
Console.WriteLine("Hi server");
while (true)
{
String command = "";
try
{
command = Console.ReadLine();
if (command != null)
if(command.Length > 0)
System.Console.WriteLine("Server response: " + command);
}
catch (IOException ex)
{
Console.WriteLine(ex.StackTrace);
outWriter.WriteLine(ex.StackTrace);
}
}
But never can read anything.
I know good how to make a client server with TCP. But with Console appears
to be different.
When is "established" the connection?
trought Console.WriteLine(); & Console.ReadLine();
I have the source code of the server.
I need to make the client. To do this i have
Console.WriteLine("Hi server");
while (true)
{
String command = "";
try
{
command = Console.ReadLine();
if (command != null)
if(command.Length > 0)
System.Console.WriteLine("Server response: " + command);
}
catch (IOException ex)
{
Console.WriteLine(ex.StackTrace);
outWriter.WriteLine(ex.StackTrace);
}
}
But never can read anything.
I know good how to make a client server with TCP. But with Console appears
to be different.
When is "established" the connection?