()
| 212 | |
| 213 | /// Read each line of standard input, and either set our name or send a message as appropriate. |
| 214 | void InputLoop() |
| 215 | { |
| 216 | while (true) |
| 217 | { |
| 218 | var input = Console.ReadLine(); |
| 219 | if (input == null) |
| 220 | { |
| 221 | break; |
| 222 | } |
| 223 | |
| 224 | if (input.StartsWith("/name ")) |
| 225 | { |
| 226 | input_queue.Enqueue(("name", input[6..])); |
| 227 | continue; |
| 228 | } |
| 229 | else |
| 230 | { |
| 231 | input_queue.Enqueue(("message", input)); |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | void ProcessCommands(RemoteReducers reducers) |
| 237 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…