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/Receiver.cs Normal file
View File

@@ -0,0 +1,21 @@
using System;
using System.IO;
using System.Net.Sockets;
class Receiver
{
private TcpClient Client;
private StreamReader Reader;
public Receiver (TcpClient client)
{
this.Client = client;
this.Reader = new StreamReader(Client.GetStream());
}
public string Receive ()
{
return Reader.ReadLine();
}
}