-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
242 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.frostwire.jlibtorrent.alerts; | ||
|
||
import com.frostwire.jlibtorrent.ErrorCode; | ||
import com.frostwire.jlibtorrent.swig.lsd_error_alert; | ||
|
||
/** | ||
* posted if the local service discovery socket fails to start properly. | ||
* it's categorized as ``error_notification``. | ||
* | ||
* @author gubatron | ||
* @author aldenml | ||
*/ | ||
public final class LsdErrorAlert extends AbstractAlert<lsd_error_alert> { | ||
|
||
public LsdErrorAlert(lsd_error_alert alert) { | ||
super(alert); | ||
} | ||
|
||
/** | ||
* The error code. | ||
* | ||
* @return | ||
*/ | ||
public ErrorCode getError() { | ||
return new ErrorCode(alert.getError()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.frostwire.jlibtorrent.alerts; | ||
|
||
import com.frostwire.jlibtorrent.ErrorCode; | ||
import com.frostwire.jlibtorrent.swig.mmap_cache_alert; | ||
|
||
/** | ||
* @author gubatron | ||
* @author aldenml | ||
*/ | ||
public final class MmapCacheAlert extends AbstractAlert<mmap_cache_alert> { | ||
|
||
public MmapCacheAlert(mmap_cache_alert alert) { | ||
super(alert); | ||
} | ||
|
||
public ErrorCode getError() { | ||
return new ErrorCode(alert.getError()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.frostwire.jlibtorrent.alerts; | ||
|
||
import com.frostwire.jlibtorrent.swig.peer_log_alert; | ||
|
||
/** | ||
* This alert is posted by events specific to a peer. It's meant to be used | ||
* // for trouble shooting and debugging. It's not enabled by the default alert | ||
* // mask and is enabled by the ``alert::peer_log_notification`` bit. By | ||
* // default it is disabled as a build configuration. To enable, build | ||
* // libtorrent with logging support enabled (``logging=on`` with bjam or | ||
* // define ``TORRENT_LOGGING``). | ||
* | ||
* @author gubatron | ||
* @author aldenml | ||
*/ | ||
public final class PeerLogAlert extends PeerAlert<peer_log_alert> { | ||
|
||
public PeerLogAlert(peer_log_alert alert) { | ||
super(alert); | ||
} | ||
|
||
/** | ||
* The log message. | ||
* | ||
* @return | ||
*/ | ||
public String getMsg() { | ||
return alert.getMsg(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.frostwire.jlibtorrent.alerts; | ||
|
||
import com.frostwire.jlibtorrent.swig.torrent_log_alert; | ||
|
||
/** | ||
* This alert is posted by torrent wide events. It's meant to be used for | ||
* // trouble shooting and debugging. It's not enabled by the default alert | ||
* // mask and is enabled by the ``alert::torrent_log_notification`` bit. By | ||
* // default it is disabled as a build configuration. To enable, build | ||
* // libtorrent with logging support enabled (``logging=on`` with bjam or | ||
* // define ``TORRENT_LOGGING``). | ||
* | ||
* @author gubatron | ||
* @author aldenml | ||
*/ | ||
public final class TorrentLogAlert extends TorrentAlert<torrent_log_alert> { | ||
|
||
public TorrentLogAlert(torrent_log_alert alert) { | ||
super(alert); | ||
} | ||
|
||
/** | ||
* The log message. | ||
* | ||
* @return | ||
*/ | ||
public String getMsg() { | ||
return alert.getMsg(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters