Set AITT option to open AITT handle.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
{
nns_edge_handle_s *eh;
nns_edge_aitt_handle_s *ah;
+ aitt_option_h option;
eh = (nns_edge_handle_s *) edge_h;
return NNS_EDGE_ERROR_OUT_OF_MEMORY;
}
- ah->aitt_h = aitt_new (eh->id, eh->host);
+ option = aitt_option_new ();
+ aitt_option_set (option, AITT_OPT_MY_IP, eh->host);
+
+ ah->aitt_h = aitt_new (eh->id, option);
+ aitt_option_destroy (option);
+
if (!ah->aitt_h) {
nns_edge_loge ("Failed to create AITT handle. AITT internal error.");
SAFE_FREE (ah);