J'ai fais un client qui receptionne des packets et je voudrais receptionner les int que mon serveur envoie ...
Comment peut on faire ?
Voici mon code pour la reception:
IPHostEntry
ipHostEntry = Dns.Resolve(Dns.GetHostName());
IPAddress ipAddress = ipHostEntry.AddressList[0];
IPEndPoint remoteEP = newIPEndPoint(ipAddress, 1222);Socket clientSocket = newSocket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
this.Buffer = newbyte[1024];clientSocket.Connect(remoteEP);
int count = clientSocket.Receive(this.Buffer, 0, this.Buffer.Length, SocketFlags.Peek);