001         package com.croftsoft.core.net.news;
002    
003         import java.net.*;
004         import java.io.*;
005         import java.util.*;
006    
007         /*********************************************************************
008         * Static constants for NNTP.
009         *
010         * @author
011         *   <a href="http://croftsoft.com/">David Wallace Croft</A>
012         * @version
013         *   2001-07-23
014         * @since
015         *   2001-07-23
016         *********************************************************************/
017    
018         public interface  NntpConstants
019         //////////////////////////////////////////////////////////////////////
020         //////////////////////////////////////////////////////////////////////
021         {
022    
023         public static final int     NNTP_PORT         = 119;
024    
025         public static final String  COMMAND_ARTICLE   = "ARTICLE";
026         public static final String  COMMAND_AUTHINFO  = "AUTHINFO";     
027         public static final String  COMMAND_BODY      = "BODY";
028         public static final String  COMMAND_GROUP     = "GROUP";
029         public static final String  COMMAND_HEAD      = "HEAD";
030         public static final String  COMMAND_HELP      = "HELP";
031         public static final String  COMMAND_IHAVE     = "IHAVE";
032         public static final String  COMMAND_LAST      = "LAST";
033         public static final String  COMMAND_LIST      = "LIST";
034         public static final String  COMMAND_NEWGROUPS = "NEWGROUPS";
035         public static final String  COMMAND_NEWNEWS   = "NEWNEWS";
036         public static final String  COMMAND_NEXT      = "NEXT";
037         public static final String  COMMAND_POST      = "POST";
038         public static final String  COMMAND_QUIT      = "QUIT";
039         public static final String  COMMAND_SLAVE     = "SLAVE";
040         public static final String  COMMAND_STAT      = "STAT";
041    
042         public static final String  CR_LF             = "\r\n";
043    
044         //////////////////////////////////////////////////////////////////////
045         //////////////////////////////////////////////////////////////////////
046         }