Projektdatei committed

This commit is contained in:
2014-04-03 10:33:41 +02:00
parent aa1e295425
commit 46b820f2b6
21 changed files with 58 additions and 0 deletions

21
src/Sender.cs Normal file
View File

@@ -0,0 +1,21 @@
using System;
using System.IO;
using System.Net.Sockets;
using System.Text;
public class Sender
{
private TcpClient Client;
public Sender (TcpClient client)
{
this.Client = client;
}
public void Send (String message)
{
StreamWriter writer = new StreamWriter(Client.GetStream());
writer.WriteLine(message);
writer.Flush();
}
}