-
Notifications
You must be signed in to change notification settings - Fork 232
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
1 parent
21f742a
commit 9719381
Showing
113 changed files
with
3,515 additions
and
43 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
stix_transmission/src/modules/async_dummy/async_dummy_connector.py
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,17 @@ | ||
from ..base.base_connector import BaseConnector | ||
from .async_dummy_ping import AsyncDummyPing | ||
from .async_dummy_query_connector import AsyncDummyQueryConnector | ||
from .async_dummy_status_connector import AsyncDummyStatusConnector | ||
from .async_dummy_results_connector import AsyncDummyResultsConnector | ||
|
||
|
||
class Connector(BaseConnector): | ||
def __init__(self, connection, configuration): | ||
host = connection.get('host') | ||
port = connection.get('port') | ||
path = connection.get('path') | ||
self.query_connector = AsyncDummyQueryConnector(host, port, path) | ||
self.status_connector = AsyncDummyStatusConnector(host, port, path) | ||
self.results_connector = AsyncDummyResultsConnector(host, port, path) | ||
self.is_async = True | ||
self.ping_connector = AsyncDummyPing(host, port, path) |
11 changes: 11 additions & 0 deletions
11
stix_transmission/src/modules/async_dummy/async_dummy_ping.py
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,11 @@ | ||
from ..base.base_ping import BasePing | ||
|
||
|
||
class AsyncDummyPing(BasePing): | ||
def __init__(self, host, port, path): | ||
self.host = host | ||
self.port = port | ||
self.path = path | ||
|
||
def ping(self): | ||
return 'async ping' |
Oops, something went wrong.