Undecided Question

How do you fix a broken bone?

i have been wondering this for a long time. How do i fix a broken bone? I have heard you are supposed to jerk the broken limb just to put the broken bone back into place , but how would i do that? I would like to know because I like to adventure places and hike in the woods and if, say, my friend broke a bone in his leg and I would be the only one around and the bone was coming through the skin what should I do? I know lots of natural remedies for infections so I could take care of that until we found a Doctor but i want to know how to splint it, wrap it, and put it back into the skin and into place. and also, what could i do to help with the pain?