diff options
author | fcolin | 2007-02-01 10:03:18 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:03:18 +0000 |
commit | 5316d2e39a94854e8a39c2d616e06da83a80f8f4 (patch) | |
tree | 9236b6ab615e1221f7b8f023150480d6a5c6eef1 /CSharp/Ivy | |
parent | 7963d85af5eedafb600df9b4d9f23cf52f794284 (diff) | |
download | ivy-csharp-5316d2e39a94854e8a39c2d616e06da83a80f8f4.zip ivy-csharp-5316d2e39a94854e8a39c2d616e06da83a80f8f4.tar.gz ivy-csharp-5316d2e39a94854e8a39c2d616e06da83a80f8f4.tar.bz2 ivy-csharp-5316d2e39a94854e8a39c2d616e06da83a80f8f4.tar.xz |
Utilisateur : Fcolin Date : 14/01/05 Heure : 19:01 Archivé dans $/CSharp/Ivy Commentaire: remove TcpClient & MyTCpClient use directly Socket (vss 7)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyWatcher.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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)
|