[go: up one dir, main page]

Menu

Tree [r31] /
 History

HTTPS access


File Date Author Commit
 client 2007-04-05 lilyco [r31] tcp removed; udt rendezvous connection introduced.
 gmp 2007-03-24 lilyco [r27]
 lib 2006-09-18 lilyco [r1] initial import
 metadata 2007-03-30 lilyco [r28]
 routing 2007-03-24 lilyco [r27]
 server 2007-04-05 lilyco [r31] tcp removed; udt rendezvous connection introduced.
 sql 2007-03-24 lilyco [r27]
 udt 2007-03-24 lilyco [r27]
 util 2007-03-24 lilyco [r27]
 COPYRIGHT 2007-02-23 lilyco [r19]
 LICENSE 2006-09-18 lilyco [r1] initial import
 Makefile 2007-02-23 lilyco [r23]
 Makefile.common 2007-02-23 lilyco [r19]
 README 2007-02-23 lilyco [r24]

Read Me

I. Installation

SECTOR currently only works on Linux system. Simple use "make" to compile the source code 
and the generated executables can be found in ./server and ./client respectively.

Note:
1. Do NOT use GCC version 3.3. If you have multiple versions of GCC in your system, change 
Makefile.common and ./udt/Makefile to use the proper version.
2. SECTOR requres libssl-dev to compile.


II. Configuration
The only configuration file is ./server/sector.cof. You may need to edit this file to assign
a specific location for file storage and port numbers.


III. Server

The server program is located at ./server directory. For a stand-alone server, run 
./cbfs <LOCAL IP ADDRESS> 

For more servers:
./cbfs <LOCAL IP ADDRESS> <REMOTE IP ADDRESS> <REMOTE PORT>

For example,
If you are start the first server on 10.0.0.1 at port 2237, run ./cbfs 10.0.0.1
Then if you are start the second server on 10.0.0.2, run ./cbfs 10.0.0.2 10.0.0.1 2237


IV. Client

The client programs are located at ./client directory. There are two applications. "download"
is used to download files to a local disk.

./download <IP> <PORT> <FILE LIST> <LOCAL DIRECTORY>

In particular, the <FILE LIST> is an ASCII file with a list of file names, one per row.

"upload" is to upload a file to a server.

./upload <IP> <PORT> <SRC FILE> [DST FILE]

The above command uploads a local file <SRC FILE> to the server <IP:PORT> with the destination
name of [DST FILE]. The destination name is optional. If it is not used, the file on the server will
have the same name as <SRC FILE>.

Note that SECTOR is a flat file system. There is no directory structure, so every file must have a 
unique file name. In addition, the client cannot modify or overwrite a file unless the file is 
originally uploaded by the same client.

The SECTOR client also works on Windows system.