//, TCPHandle handler) public TCPReceiver(string localIp, int port) { _port = port; _localIp = localIp; ConnectionSetup(); util = new TCPUtillity(); // _handler = handler; }
static void Main(string[] args) { TCPReceiver soc = new TCPReceiver("127.0.0.1", 1000); TCPUtillity utillity = new TCPUtillity(); Console.Read(); utillity.TCPSend(soc.networkStream, "hej med jer"); }