2018-11-11 22:56:44 +08:00
|
|
|
from .raw_connection_interface import IRawConnection
|
|
|
|
|
2018-11-13 02:02:49 +08:00
|
|
|
|
2018-11-11 22:56:44 +08:00
|
|
|
class RawConnection(IRawConnection):
|
2018-11-27 07:24:29 +08:00
|
|
|
# pylint: disable=too-few-public-methods
|
2018-11-11 22:56:44 +08:00
|
|
|
|
2018-11-12 01:17:12 +08:00
|
|
|
def __init__(self, ip, port, reader, writer):
|
2018-11-11 22:56:44 +08:00
|
|
|
self.conn_ip = ip
|
|
|
|
self.conn_port = port
|
2018-11-12 01:17:12 +08:00
|
|
|
self.reader = reader
|
|
|
|
self.writer = writer
|
2018-11-11 22:56:44 +08:00
|
|
|
|
2018-11-12 06:15:55 +08:00
|
|
|
def close(self):
|
|
|
|
self.writer.close()
|