1. A wireless apparatus operable in a wireless communication system, the apparatus comprising: a discovery engine configured to search for a near-area network (NAN) to communicate with based on one or more attributes received from an application, the attributes containing information to configure the discovery engine to perform functions as defined by the application, the discovery engine further configured to communicate with the NAN based on the attributes.