Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- using System.Net.Sockets;
- using System.Text;
- using System.Collections;
- namespace Tilted_Client
- {
- class Program
- {
- static void Main(string[] args)
- {
- TcpClient _client = new TcpClient();
- byte[] _buffer = new byte[4096];
- string _in;
- _client.Connect("127.0.0.1", 3000);
- NetworkStream _netStream = _client.GetStream();
- while (true)
- {
- _in = Console.ReadLine();
- _buffer = System.Text.Encoding.ASCII.GetBytes(_in);
- _netStream.Write(_buffer, 0, _buffer.Length);
- _netStream.Flush();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment