Esempio n. 1
0
        public Connection(string host, int port)
        {
            _host = host;
            _port = port;

            _options = new ConnectionOptionsCollection();
            _options["mediumSetElementSetName"] = "F";
            ZConnection = Yaz.ZOOM_connection_create(_options.ZoomOptions);
            Yaz.ZOOM_connection_option_setl(ZConnection, "mediumSetElementSetName", "F", 1);

            var errorCode = Yaz.ZOOM_connection_errcode(ZConnection);

            CheckErrorCodeAndThrow(errorCode);
        }
 internal IntPtr CreateConnection()
 {
     return(Yaz.ZOOM_connection_create(ZoomOptions));
 }