msg.Body = "This is a message.";
msg.Attachments.Add(new Attachment("7.cs", "text/plain"));
msg.Attachments.Add(new Attach
Tag: From
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: Créer à un client TCP
(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
try
{
server.Connect(ipep);
} catch (SocketE
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: Exemple d’un Client UDP
server.SendTo(data, data.Length, SocketFlags.None, ipep);
IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);
EndPoint tmpRemote = (EndPoi
C# Programmation Réseau: Envoyer un email en utilisant l”API Collaboration Data Objects (CDO)
ds MyFields = MyConfig.Fields;
MyFields[@"http://schemas.microsoft.com/cdo/configuration/sendusing"].Value = 2;
MyFields[@"http://schemas.microsoft
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: Exemple d’un Serveur Udp
ype.Udp);
newsock.Bind(ipep);
Console.WriteLine("Waiting for a client...");
IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);
EndP
C# Programmation Réseau: Client Udp
work,
SocketType.Dgram, ProtocolType.Udp);
string welcome = "Hello, are you there?";
data = Encoding.ASCII.GetBytes(welcome);
C# Programmation Réseau: Obtenir l’adresse IP de l’hôte
ons of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistributions in binary fo