code: def _server_extract_frame(self, *, mpfdp, mpkit, mpbuf):
          
          # check EOF
          if self._flag_e:
              raise EOFError
  
          # extract frame
          try:
              frame = Frame(self._ifile, num=self._frnum, proto=self._dlink, layer=self._exlyr,
                            protocol=self._exptl, nanosecond=self._nnsec, mpkit=mpkit, mpfdp=mpfdp)
              # frame._file = NotImplemented
              mpbuf[self._frnum] = frame
          except EOFError:
              mpbuf[self._frnum] = EOFError
              mpkit.eof = True
          finally:
              mpkit.counter -= 1
              self._ifile.close()
docs: Extract frame.