Skip to content

Commit c15a1a4

Browse files
author
DanielePalaia
committed
connection layer implementation
1 parent c7027df commit c15a1a4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import abc
2+
from proton.utils import BlockingConnection
3+
4+
class Connection(abc.ABC):
5+
6+
def __self__(self, addr: str):
7+
self._addr = addr
8+
9+
def dial(self, addr: str) -> BlockingConnection:
10+
return BlockingConnection(self._addr)
11+
12+
13+
# closes the connection to the AMQP 1.0 server.
14+
def close(self) -> None:
15+
pass
16+
17+
# returns the current status of the connection.
18+
def status(self) -> int:
19+
pass

0 commit comments

Comments
 (0)