#include <string.h>
#include <stdint.h>
+#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
+#endif
#include <inttypes.h>
#include "cainterface.h"
.GetnetInfo = CAGetTCPInterfaceInformation,
.readData = CAReadTCPData,
.stopAdapter = CAStopTCP,
- .terminate = CATerminateTCP };
- registerCallback(TCPHandler, CA_ADAPTER_TCP);
+ .terminate = CATerminateTCP,
+ .cType = CA_ADAPTER_TCP};
+
+ registerCallback(TCPHandler);
OIC_LOG(INFO, TAG, "OUT IntializeTCP is Success");
return CA_STATUS_OK;