Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13190279
D12824.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12824.diff
View Options
Index: .arcconfig
===================================================================
--- /dev/null
+++ .arcconfig
@@ -0,0 +1,4 @@
+{
+ "project.name" : "0MQ Toy",
+ "phabricator.uri" : "https://secure.phabricator.com/"
+}
Index: ZEROMQClient/ViewModel.cs
===================================================================
--- ZEROMQClient/ViewModel.cs
+++ ZEROMQClient/ViewModel.cs
@@ -146,12 +146,12 @@
for (int i = 0; i < 10; i++)
{
- Console.WriteLine("Sending Hello");
+ Console.WriteLine("[C]: Sending Hello");
client.Send("Hello");
- Console.WriteLine("Hello sent");
+ Console.WriteLine("[C]: Hello sent");
var message = client.ReceiveString();
- Console.WriteLine("Received {0}", message);
+ Console.WriteLine("[C]: Received {0}", message);
this.ResponseMessage = message;
}
}
Index: ZEROMQServer/ViewModel.cs
===================================================================
--- ZEROMQServer/ViewModel.cs
+++ ZEROMQServer/ViewModel.cs
@@ -163,20 +163,19 @@
serverSocket.Bind("tcp://*:" + this.ServerPort);
this.ServerRunning = true;
- Console.WriteLine("Server is running");
+ Console.WriteLine("[S]: Server is running");
while (this._serverThread.CancellationPending == false)
{
- Console.WriteLine("Waiting to receive");
+ Console.WriteLine("[S]: Waiting to receive");
var message = serverSocket.ReceiveString();
- Console.WriteLine("Received {0}", message);
+ Console.WriteLine("[S]: Received {0}", message);
- // processing the request
+ // Processing the request
Thread.Sleep(100);
- Console.WriteLine("Sending World");
serverSocket.Send("World");
- Console.WriteLine("World sent");
+ Console.WriteLine("[S]: World sent");
}
}
}
@@ -185,7 +184,7 @@
if (this._serverThread.CancellationPending == true)
{
// This exception is expected and not considered as fatal
- Console.WriteLine("Server has stopped");
+ Console.WriteLine("[S]: Server has stopped");
}
else
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 12, 9:09 AM (3 w, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6291034
Default Alt Text
D12824.diff (2 KB)
Attached To
Mode
D12824: Added Identifiers to Server and Client console writelines
Attached
Detach File
Event Timeline
Log In to Comment