TcpLink.Session handle type from long to IntPtr