matarillo #7126(2008/08/15 05:51 GMT) [ C# ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
using System; using System.IO; using System.Net.Sockets; class P { static void Main(string[] args) { TcpClient c = new TcpClient(args[0], int.Parse(args[1])); NetworkStream s = c.GetStream(); TextWriter w = new StreamWriter(s); TextReader r = new StreamReader(s); string l = null; while ((l = Console.ReadLine()) != null) { w.WriteLine(l); w.Flush(); Console.WriteLine(r.ReadLine()); } } }
Rating0/0=0.00-0+
[ reply ]
matarillo
#7126()
[
C#
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]