Changeset 738
- Timestamp:
- 12/6/2008 3:34:58 AM (4 years ago)
- File:
-
- 1 edited
-
branches/eraser6/Manager/RemoteExecutor.cs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/RemoteExecutor.cs
r737 r738 90 90 /// Our Remote Server name, prevent collisions! 91 91 /// </summary> 92 public const string ServerName = "Eraser-FB6C5A7D-E47F-475f-ABA4-58F4D24BB67E-RemoteExecutor"; 92 public static readonly string ServerName = 93 "Eraser-FB6C5A7D-E47F-475f-ABA4-58F4D24BB67E-RemoteExecutor-" + 94 System.Security.Principal.WindowsIdentity.GetCurrent().User.ToString(); 93 95 94 96 /// <summary> … … 100 102 /// Our pipe instance which handles connections. 101 103 /// </summary> 102 private NamedPipeServerStream server = 103 new NamedPipeServerStream(ServerName, PipeDirection.InOut, 4, 104 private NamedPipeServerStream server; 105 106 /// <summary> 107 /// Constructor. 108 /// </summary> 109 public RemoteExecutorServer() 110 { 111 server = new NamedPipeServerStream(ServerName, PipeDirection.InOut, 4, 104 112 PipeTransmissionMode.Byte, PipeOptions.Asynchronous); 105 113 106 /// <summary>107 /// Constructor.108 /// </summary>109 public RemoteExecutorServer()110 {111 114 thread = new Thread(Main); 112 115 thread.Start(); 113 114 116 Thread.Sleep(0); 115 117 } … … 292 294 public class RemoteExecutorClient : Executor 293 295 { 294 private NamedPipeClientStream client = 295 new NamedPipeClientStream(".", RemoteExecutorServer.ServerName, 296 private NamedPipeClientStream client; 297 298 public RemoteExecutorClient() 299 { 300 client = new NamedPipeClientStream(".", RemoteExecutorServer.ServerName, 296 301 PipeDirection.InOut); 297 298 public RemoteExecutorClient()299 {300 302 } 301 303
Note: See TracChangeset
for help on using the changeset viewer.
