Changeset 705 for trunk/sources/HeuristicLab.Communication.Operators
- Timestamp:
- 10/29/08 18:39:38 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Communication.Operators/TcpNetworkInitiator.cs
r591 r705 46 46 socket.Initialize(config); 47 47 while (!socket.Connect()) ; 48 try { 49 socket.Write("REQUEST_CONNECT"); 50 if (!socket.Read().Equals("REQUEST_CONNECT")) throw new InvalidOperationException("ERROR in TcpNetworkInitiator: Remote host answered with unknown response!"); 51 socket.Write("ACK"); 52 if (!socket.Read().Equals("ACK")) throw new InvalidOperationException("ERROR in TcpNetworkInitiator: Remote host answered with unknown response!"); 53 } catch (Exception) { 54 try { 55 socket.Close(); 56 } catch (Exception) { } 57 return new AtomicOperation(this, scope); 58 } 48 59 49 60 IVariableInfo info = GetVariableInfo("NetworkConnection");
Note: See TracChangeset
for help on using the changeset viewer.