示例#1
0
        public Connection(string host, int port)
        {
            _host = host;
            _port = port;

            _options    = new ConnectionOptionsCollection();
            ZConnection = Yaz.ZOOM_connection_create(_options.ZoomOptions);

            var errorCode = Yaz.ZOOM_connection_errcode(ZConnection);

            CheckErrorCodeAndThrow(errorCode);
        }
示例#2
0
 internal IntPtr CreateConnection()
 {
     return(Yaz.ZOOM_connection_create(ZoomOptions));
 }