ull;
Stream stream = null;
this.Cursor = Cursors.WaitCursor;
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(textServer.Text);
Tag: Form
C# Programmation Réseau: Encoder un URL
y stirng routines
///
public class StringUtil
{
private static readonly Regex urlEncodeRegex = new Regex("[^a-zA-Z0-9\.\-_~]", Re
C# Programmation Réseau: Envoyer un fichier par email
msg.Body = "This is a message.";
msg.Attachments.Add(new Attachment("7.cs", "text/plain"));
msg.Attachments.Add(new Attach
C# Programmation Réseau: Exemple d’une application qui accède aux routeurs CISCO
Router()
{
Text = "Cisco Router Utilization";
Size = new Size(400, 380);
Label label1 = new Label();
label1.Parent = this;
lab
C# Programmation Réseau: Afficher le nom de l’interface réseaux
using System;
using System.Net.NetworkInformation;
class MainClass {
static void Main() {
if (NetworkInterface.GetIsNetworkAvailable()) {
NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface ni in interfaces) {
Console.WriteLine("Interface Name: {0}", ni.Name);
}
} else {
Console.WriteLine("No network available.");
}
}
}
C# Programmation Réseau: Afficher le type de l’interface réseaux
using System;
using System.Net.NetworkInformation;
class MainClass {
static void Main() {
if (NetworkInterface.GetIsNetworkAvailable()) {
NetworkInterface[] interfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface ni in interfaces) {
Console.WriteLine(" Type: {0}", ni.NetworkInterfaceType);
}
} else {
Console.WriteLine("No network available.");
}
}
}
C# Programmation Réseau: Afficher l’adresse IP de l’ordinateur
ns of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistributions in binary for
C# Programmation Réseau: Créer une application SNMP
MP information:");
// Send sysName SNMP request
response = conn.get("get", argv[0], argv[1], "1.3.6.1.2.1.1.5.0");
if (response[0] == 0xff)
C# Programmation Réseau: Vérifier si l’etat du réseau a changé
using System;
using System.Net.NetworkInformation;
class MainClass {
private static void NetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e) {
if (e.IsAvailable) {
Console.WriteLine("Network Available");
} else {
Console.WriteLine("Network Unavailable");
}
}
static void Main(string[] args) {
NetworkChange.NetworkAvailabilityChanged += NetworkAvailabilityChanged;
}
}
C# Programmation Réseau: Crypter les données dans une communication de Socket
emoryStream();
byte[] Key = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16};
b