From 5316d2e39a94854e8a39c2d616e06da83a80f8f4 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:03:18 +0000 Subject: Utilisateur : Fcolin Date : 14/01/05 Heure : 19:01 Archivé dans $/CSharp/Ivy Commentaire: remove TcpClient & MyTCpClient use directly Socket (vss 7) --- CSharp/Ivy/IvyPPC/IvyWatcher.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'CSharp/Ivy') diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs index dc8343f..ee67ea3 100644 --- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs +++ b/CSharp/Ivy/IvyPPC/IvyWatcher.cs @@ -118,7 +118,9 @@ namespace IvyBus traceDebug("BUSWATCHER Broadcast de " + Dns.GetHostName() + ":" + remoteEP.Port + " port " + port + " version " + version); try { - MyTcpClient socket = new MyTcpClient(remoteEP.Address.ToString(),port); + Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); + IPEndPoint hostEndPoint = new IPEndPoint(remoteEP.Address, port); + socket.Connect(hostEndPoint); bus.addClient(socket); } catch (Exception e) -- cgit v1.1