From 1d9a3b151d1011f828d074923f246fb36c120035 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:02:44 +0000 Subject: Utilisateur : Fcolin Date : 1/12/05 Heure : 18:07 Archivé dans $/CSharp/Ivy Commentaire: (vss 2) --- CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'CSharp/Ivy/IvyPPC') diff --git a/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs b/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs index 0711f07..d09d85b 100644 --- a/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs +++ b/CSharp/Ivy/IvyPPC/IvyUDPStreamV3.cs @@ -45,18 +45,17 @@ namespace IvyBus len = socket.ReceiveFrom(buffer, ref tempRemoteEP); remote = (IPEndPoint)tempRemoteEP; in_stream.Position = 0; - version = input.ReadUInt16(); - port = input.ReadUInt16(); - int lenAppId = input.ReadUInt16(); - appId = input.ReadChars(lenAppId); - int lenAppName = input.ReadUInt16(); - appName = new String(input.ReadChars(lenAppName)); + version = 0; //TODO input.ReadUInt16(); + port = 0; //TODO input.ReadUInt16(); + int lenAppId = 0; //TODO input.ReadUInt16(); + appId = null; //TODO input.ReadChars(lenAppId); + int lenAppName = 0; //TODO input.ReadUInt16(); + appName = null; //TODO new String(input.ReadChars(lenAppName)); } internal void sendMsg(IPEndPoint EPhost, int port, string appId, string appName) { - String.Format() output.Write((ushort)IPAddress.HostToNetworkOrder((short)(PROCOCOLVERSION))); output.Write((ushort)IPAddress.HostToNetworkOrder((short)port)); output.Write((ushort)IPAddress.HostToNetworkOrder((short)appId.Length)); -- cgit v1.1