nntp.rb
raises: Exceptions

class NNTPError inherits from RuntimeError;


class NNTPReplyError inherits from NNTPError;


class NNTPTemporaryError inherits from NNTPError;


class NNTPPermanentError inherits from NNTPError;


class NNTPDataError inherits from NNTPError;


class NNTP

method initialize(host,port=NNTP_PORT,user=nil,password=nil,readermode=nil)

raises:
raises: NNTPReplyError,
raises: NNTPPermanentError,

method welcome

Writable attributes:

debuglevel

method putline(line)

method putcmd(cmd)

method getline

method getresp

raises: c
raises: c
raises: '123'.include?(c)

method getlongresp

raises: NNTPReplyError,

method shortcmd(line)

method longcmd(line)

method newgroups(date,time)

method newnews(group,date,time)

method list

method group(name)

raises: NNTPReplyError,

method help

method startparse(resp)

raises: NNTPReplyError,

method statcmd(line)

method stat(id)

method next

method last

method articlecmd(line)

method head(id)

method body(id)

method article(id)

method slave(id)

method xhdr(hdr,str)

method xover(start,ed)

raises: NNTPDataError

method xgtitle(group)

method date

raises: NNTPReplyError
raises: NNTPDataError
raises: NNTPDataError

method post(f)

raises: NNTPReplyError

method quit

Hosted by www.Geocities.ws

1