Bacterial Conjugation/Horizontal Gene Transfer -- how does the plasmid exchange work?
The donor cell retracts it pilus upon contact with another cell and both cells form a pore between the two cells, which allows the transfer of DNA. 
Take a look at the image, I think this makes it clearer (from the Wikipedia article on Pili):



This has even be seen in an electron microscope: