Establishing a connection |
You may establish a connection to an NNTP server by constructing a new Nntp instance providing the server hostname as an argument to the constructor and invoking the Nntp#connect method.
Example
// create new Nntp instance Nntp nntp = new Nntp("news.server.com");
// establish connection nntp.connect(); |