add ipc param in connect methods
Merge pull request #17 from Theadd/master

return ipc as argument in connect and connectNet callbacks