A hammock is a sling between two points used for sleeping. It is usually between two trees.

See Wikipedia