-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathping.py
More file actions
41 lines (32 loc) · 974 Bytes
/
Copy pathping.py
File metadata and controls
41 lines (32 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
###########################################################
#
# Copyright (c) 2008, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permission.
#
#
#
'''ping.py: simpe function to ping the server. This scripts illustrates the
most basic interaction with the server'''
# import the client api library
from tactic_client_lib import TacticServerStub
def main():
# get an instance of the stub
server = TacticServerStub()
# start the transaction
server.start("Ping Test")
try:
# ping the server
print server.ping()
except:
# in the case of an exception, abort all of the interactions
server.abort()
raise
else:
# otherwise, finish the transaction
server.finish()
if __name__ == '__main__':
main()