
0
C# Programmation Réseau: Exemple d’un Serveur Binaire UDP
ew IPEndPoint(IPAddress.Any, 0); data = newsock.Receive(ref sender); Console.WriteLine("Message received from {0}:", sender.ToString()); Con |

C# Programmation Réseau: Vérifier si un URL est Relative ou absolue
ftware is furnished to do so, subject to the following // conditions: // // The above copyright notice and this permission notice shall be // included in all co |

C# Programmation Réseau: Convertir un caractère en son équivalent hexadécimal
using System; public class MainClass{ public static void Main(){ char testChar = 'e'; if (Uri.IsHexDigit(testChar) == true) Console.WriteLine("'{0}' is the hexadecimal representation of {1}", testChar, Uri.FromHex(testChar)); else Console.WriteLine("'{0}' is not a hexadecimal character", testChar); string returnString = Uri.HexEscape(testChar); Console.WriteLine("The hexadecimal value of '{0}' is {1}", testChar, returnString); } } |

C# Programmation Réseau: Recevoir les données d’un serveur de diffusion UDP
int)iep; Console.WriteLine("Ready to receive..."); byte[] data = new byte[1024]; int recv = sock.ReceiveFrom(data, ref ep); string stri |

C# Programmation Réseau: Créer une connexion Socket
ent(); MyClient.Connect("http://www.java2s.com", 10000); NetworkStream MyNetStream = MyClient.GetStream(); if(MyNetStream.CanWrite && |

C# Programmation Réseau: Vérifier si un URL est ROOT
ftware is furnished to do so, subject to the following // conditions: // // The above copyright notice and this permission notice shall be // included in all co |