Permalink
Browse files

update readme and compiles now (but not fully working)

  • Loading branch information...
1 parent b2c4e8e commit 46df96351c27a691d8d32931845d5e68095177b9 @heavyk heavyk committed Jan 31, 2013
Showing with 157 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +26 −1 README.md
  3. +86 −0 binding.gyp
  4. +29 −0 package.json
  5. +1 −1 src/bulkID3/util.cpp
  6. +14 −7 src/transNode.cpp
View
@@ -10,5 +10,6 @@ lib-cov
pids
logs
results
+build
npm-debug.log
View
@@ -1,4 +1,29 @@
TransNode
=========
-node.js C++ torrent module based on libstransmission (without RPC)
+node.js C++ torrent module based on libstransmission (without RPC)
+
+## License
+
+(The MIT License)
+
+Copyright (c) 2013 Fernando Martín <fernancoder@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,86 @@
+{
+ "targets": [
+ {
+ "target_name": "trans-node",
+ "sources": [
+ "src/transNode.cpp",
+ "src/bulkID3/id3_tag_frame.cpp",
+ "src/bulkID3/id3_tag.cpp",
+ "src/bulkID3/id3_util.cpp",
+ "src/bulkID3/linked_list.cpp",
+ "src/bulkID3/mp3.cpp",
+ "src/bulkID3/util.cpp",
+ "src/bulkID3/xmalloc.cpp",
+ "src/libtransmission/announcer.c",
+ "src/libtransmission/announcer-http.c",
+ "src/libtransmission/announcer-udp.c",
+ "src/libtransmission/bandwidth.c",
+ "src/libtransmission/bencode.c",
+ "src/libtransmission/bitfield.c",
+ "src/libtransmission/blocklist.c",
+ "src/libtransmission/cache.c",
+ "src/libtransmission/clients.c",
+ "src/libtransmission/completion.c",
+ "src/libtransmission/ConvertUTF.c",
+ "src/libtransmission/crypto.c",
+ "src/libtransmission/fdlimit.c",
+ "src/libtransmission/handshake.c",
+ "src/libtransmission/history.c",
+ "src/libtransmission/inout.c",
+ "src/libtransmission/json.c",
+ "src/libtransmission/jsonsl.c",
+ "src/libtransmission/list.c",
+ "src/libtransmission/magnet.c",
+ "src/libtransmission/makemeta.c",
+ "src/libtransmission/metainfo.c",
+ "src/libtransmission/natpmp.c",
+ "src/libtransmission/net.c",
+ "src/libtransmission/peer-io.c",
+ "src/libtransmission/peer-mgr.c",
+ "src/libtransmission/peer-msgs.c",
+ "src/libtransmission/platform.c",
+ "src/libtransmission/port-forwarding.c",
+ "src/libtransmission/ptrarray.c",
+ "src/libtransmission/resume.c",
+ "src/libtransmission/rpcimpl.c",
+ "src/libtransmission/rpc-server.c",
+ "src/libtransmission/session.c",
+ "src/libtransmission/stats.c",
+ "src/libtransmission/torrent.c",
+ "src/libtransmission/torrent-ctor.c",
+ "src/libtransmission/torrent-magnet.c",
+ "src/libtransmission/tr-dht.c",
+ "src/libtransmission/trevent.c",
+ "src/libtransmission/tr-lpd.c",
+ "src/libtransmission/tr-udp.c",
+ "src/libtransmission/tr-utp.c",
+ "src/libtransmission/upnp.c",
+ "src/libtransmission/utils.c",
+ "src/libtransmission/verify.c",
+ "src/libtransmission/web.c",
+ "src/libtransmission/webseed.c",
+ "src/libtransmission/wildmat.c",
+ "src/transmissionDaemon/watch.cpp",
+ "src/PathsManager.cpp",
+ "src/FrameExtractor.cpp",
+ "src/TorrentCreator.cpp",
+ "src/TransSession.cpp",
+ "src/Utils.cpp"
+ ],
+ "conditions": [
+ ],
+ "link_settings": {
+ "libraries": [
+ "-lcrypto",
+ "-lcurl",
+ "-levent"
+ ]
+ },
+ "include_dirs": [
+ "/usr/local/include",
+ "third-party/libnatpmp",
+ "third-party"
+ ]
+ }
+ ]
+}
View
@@ -0,0 +1,29 @@
+{
+ "name": "TransNode",
+ "version": "0.1.0",
+ "main": "build/Release/WebWorkerThreads.node",
+ "description": "Lightweight Web Worker API implementation with native threads",
+ "keywords": [
+ "threads",
+ "transmission",
+ "torrent"
+ ],
+ "author": {
+ "name": "Fernando Martín",
+ "email": "fernancoder@gmail.com",
+ "twitter": "fernancoder"
+ },
+ "homepage": "https://github.com/fernancoder/TransNode",
+ "bugs": {
+ "url": "https://github.com/fernancoder/TransNode/issues",
+ "email": "fernancoder@gmail.com"
+ },
+ "repository": {
+ "type": "git",
+ "url": "http://github.com/fernancoder/TransNode.git"
+ },
+ "gypfile": true,
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+}
View
@@ -123,7 +123,7 @@ char* convert_to_utf_8( enum Encoding encoding, char* string_buffer, size_t str_
//
iconv_t conv = iconv_open( "UTF-8", src_encoding );
- if( conv == (conv)-1 )
+ if( conv == (iconv_t) -1 )
{
print_message( "iconv_open() failed.", ERROR, true );
return NULL;
View
@@ -127,7 +127,8 @@ void afterMp3ToTorrentImpl(Baton *baton)
responseInfo->Set(String::NewSymbol("pieceSize"), Integer::New(baton->pieceSize));
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[argc] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;
@@ -266,7 +267,8 @@ void afterSessionImpl(Baton *baton)
}
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[0] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;
@@ -390,7 +392,8 @@ void afterAddImpl(Baton *baton)
responseInfo->Set(String::NewSymbol("linkType"), Integer::New(baton->nodeTorrentLinkType));
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[0] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;
@@ -507,7 +510,8 @@ void afterListImpl(Baton *baton)
responseInfo->Set(String::NewSymbol("torrents"), arrayToSend);
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[0] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;
@@ -579,7 +583,8 @@ void afterStartImpl(Baton *baton)
responseInfo->Set(String::NewSymbol("errorStatus"), Integer::New(baton->errorStatus));
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[0] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;
@@ -653,7 +658,8 @@ void afterStopImpl(Baton *baton)
responseInfo->Set(String::NewSymbol("errorStatus"), Integer::New(baton->errorStatus));
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[0] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;
@@ -727,7 +733,8 @@ void afterRemoveImpl(Baton *baton)
responseInfo->Set(String::NewSymbol("errorStatus"), Integer::New(baton->errorStatus));
const unsigned argc = 1;
- Local<Value> argv[argc] = responseInfo;
+ Local<Value> argv[argc];
+ argv[0] = responseInfo;
//ESPECIFICO *********
TryCatch try_catch;

0 comments on commit 46df963

Please sign in to comment.