annotate src/SocketFactory.java @ 9:c0ad3ecdf827

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