0
|
1 package treeVnc;
|
|
2 //
|
|
3 // Copyright (C) 2002 HorizonLive.com, Inc. All Rights Reserved.
|
|
4 //
|
|
5 // This is free software; you can redistribute it and/or modify
|
|
6 // it under the terms of the GNU General Public License as published by
|
|
7 // the Free Software Foundation; either version 2 of the License, or
|
|
8 // (at your option) any later version.
|
|
9 //
|
|
10 // This software is distributed in the hope that it will be useful,
|
|
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13 // GNU General Public License for more details.
|
|
14 //
|
|
15 // You should have received a copy of the GNU General Public License
|
|
16 // along with this software; if not, write to the Free Software
|
|
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
18 // USA.
|
|
19 //
|
|
20
|
|
21 //
|
|
22 // SocketFactory.java describes an interface used to substitute the
|
|
23 // standard Socket class by its alternative implementations.
|
|
24 //
|
|
25
|
|
26 import java.applet.*;
|
|
27 import java.net.*;
|
|
28 import java.io.*;
|
|
29
|
|
30 public interface SocketFactory {
|
|
31
|
|
32 public Socket createSocket(String host, int port, Applet applet)
|
|
33 throws IOException;
|
|
34
|
|
35 public Socket createSocket(String host, int port, String[] args)
|
|
36 throws IOException;
|
|
37 }
|