static void InitConnexion(string pseudo) { TcpAdapter tcpa = new TcpAdapter(); Protocol_handler ph = new Protocol_handler(); tcpa.send(ph.Identify_send(pseudo)); uint height, width; NetworkStream ns = (NetworkStream)tcpa.receive(); Byte[] id = new Byte[8]; ns.Read(id, 0, 8); ph.Identify_mapSize(id, out width, out height); PointConverter.ServerHeight = (int)height; PointConverter.ServerWidth = (int)width; }