ew IPEndPoint(IPAddress.Any, 0);
data = newsock.Receive(ref sender);
Console.WriteLine("Message received from {0}:", sender.ToString());
Con
Tag: From
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: Exemple d’une Application de Tchat avec le protocole TCP/IP
];
public NewTcpChat()
{
Text = “New TCP Chat Program”;
Size = new Size(400, 380);
Label label1 = new Label();
label1.Pare
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
C# Programmation Réseau: Créer une application de chat avec une socket MulticastSocket
()
{
Text = "Multicast Chat Program";
Size = new Size(400, 380);
Label label1 = new Label();
label1.Parent = this;
label1.Text
C# Programmation Réseau: Exemple d’une application Traceroute pour suivre les chemins d’un paquet
IPEndPoint iep = new IPEndPoint(iphe.AddressList[0], 0);
EndPoint ep = (EndPoint)iep;
ICMP packet = new ICMP();
packet.Type = 0x08;
C# Programmation Réseau: Exemple d’une application de chat avec interface graphique
ext = “TCP Chat Program”;
Size = new Size(400, 380);
Label label1 = new Label();
label1.Parent = this;
label1.Text = “Enter text