public static extern int attachPort(StringBuilder port, ScanCallbackDel scb, MessageCallbackDel mcb, StreamCallbackDel strmcb);
public static extern int registerResponseCallbacks(ScanCallbackDel scb, MessageCallbackDel mcb, StreamCallbackDel strcb, StatusCallbackDel srcb);