Making Nylon 6.6

In manufacturing Nyon 6.6, a solution of hexane-1,6-diamine(in NaOH(aq)) is added to a solution of hexanedioyl dichloride (in 1,1,1-trichloromethane).

What is the use of aqueous sodium hydroxide and 1,1,1-trichloromethane :?: If replace the aqueous sodium hydroxide with 1,1,1-trichloromethane, what will happen :?: If replace the aqeous sodium hydroxide with water, what will happen :?: