def add_abstract_syntax(uid)
      lib_uid = LIBRARY.uid(uid)
      raise "Invalid/unknown UID: #{uid}" unless lib_uid
      @accepted_abstract_syntaxes[uid] = lib_uid.name
    end
def add_abstract_syntax(uid)
      lib_uid = LIBRARY.uid(uid)
      raise "Invalid/unknown UID: #{uid}" unless lib_uid
      @accepted_abstract_syntaxes[uid] = lib_uid.name
    end
Creates a DServer instance.

 @note To customize logging behaviour, refer to the Logging module documentation.

 @param [Integer] port the network port to be used
 @param [Hash] options the options to use for the DICOM server
 @option options [String] :file_handler a customized FileHandler class to use instead of the default FileHandler
 @option options [String] :host the hostname that the TCPServer binds to (defaults to '0.0.0.0')
 @option options [String] :host_ae the name of the server (application entity)
 @option options [String] :max_package_size the maximum allowed size of network packages (in bytes)
 @option options [String] :timeout the number of seconds the server will wait on an answer from a client before aborting the communication

 @example Create a server using default settings
   s = DICOM::DServer.new
 @example Create a server with a specific host name and a custom buildt file handler
   require_relative 'my_file_handler'
   server = DICOM::DServer.new(104, :host_ae => "RUBY_SERVER", :file_handler => DICOM::MyFileHandler)

 Adds an abstract syntax to the list of abstract syntaxes that the server will accept.

 @param [String] uid an abstract syntax UID