org.gregoire.portknock.client
Class Main

java.lang.Object
  extended byorg.gregoire.portknock.client.Main

public class Main
extends java.lang.Object

A client that attempts connections to a given server following a sequence of ports to open within a specific time period.
This is test implementation

Version:
0.0.1
Author:
Paul Gregoire

Constructor Summary
Main()
           
 
Method Summary
 java.net.Socket connect()
          Returns the socket to be used for the tunneling application.
 void init(java.util.Properties props)
          Initializes all the internal members.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

init

public void init(java.util.Properties props)
Initializes all the internal members.

Parameters:
props - from a client configuration

connect

public java.net.Socket connect()
                        throws java.io.IOException
Returns the socket to be used for the tunneling application. The socket is only returned if the sequence is successful.

Returns:
socket available if sequence is successful.
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)


Copyright © Paul Gregoire, All Rights Reserved.