Skip to content

Commit

Permalink
Issue #58 - Update lib names/references in example receiver script
Browse files Browse the repository at this point in the history
  • Loading branch information
aywaldron committed Apr 19, 2019
1 parent 7fb34ea commit 207b0d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ait/dsn/bin/ait_cfdp_mock_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import gevent
import gevent.server
import socket


def handle(sock, address):
count = 0
Expand All @@ -27,6 +27,7 @@ def handle(sock, address):
count += 1
gevent.sleep(2)


if __name__ == '__main__':
server = gevent.server.StreamServer(('127.0.0.1', 8000), handle)
server.serve_forever()
8 changes: 4 additions & 4 deletions ait/dsn/bin/ait_cfdp_start_receiver
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
# or other export authority as may be required before exporting such
# information to foreign countries or providing access to foreign persons.

import bliss.cfdp
import ait.dsn.cfdp
import gevent
import traceback

import bliss.core.log
import ait.core.log


if __name__ == '__main__':

cfdp = bliss.cfdp.CFDP(2)
cfdp = ait.dsn.cfdp.CFDP(2)
try:
# cfdp.connect(('127.0.0.1', 8002))
# # Set the address of the counterpart
# cfdp.mib.set_remote('1', 'ut_address', ('127.0.0.1', 8001))
while True:
# bliss.core.log.info('Sleeping...')
# ait.core.log.info('Sleeping...')
gevent.sleep(1)
except KeyboardInterrupt:
print "Disconnecting..."
Expand Down
1 change: 0 additions & 1 deletion ait/dsn/bin/ait_cfdp_start_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# information to foreign countries or providing access to foreign persons.

import ait.dsn.cfdp
import os
import gevent
import traceback

Expand Down

0 comments on commit 207b0d1

Please sign in to comment.