Establish a TCP/IP connection with a connected device.
Definition at line 9 of file tcp_socket.py.
def indoor_positioning.communication.tcp_socket.TCPSocket.__init__ |
( |
|
self, |
|
|
|
host, |
|
|
|
port = 10001 |
|
) |
| |
Initialize reader class for serial connection.
:param host: String: IP address of the device you want to communicate with
:param port: Int (default=10001): port to use for the connection
Definition at line 11 of file tcp_socket.py.
def indoor_positioning.communication.tcp_socket.TCPSocket.close |
( |
|
self | ) |
|
def indoor_positioning.communication.tcp_socket.TCPSocket.get_line |
( |
|
self, |
|
|
|
eol_character |
|
) |
| |
Return a single line from the TCP stream with a custom end-of-line character.
:param eol_character: Bytes: character or sequence to use as end-of-line character.
:return: Bytes: the most recent line that has been sent via the socket connection
Definition at line 52 of file tcp_socket.py.
def indoor_positioning.communication.tcp_socket.TCPSocket.open |
( |
|
self | ) |
|
Open a socket to establish TCP/IP connection.
Definition at line 25 of file tcp_socket.py.
def indoor_positioning.communication.tcp_socket.TCPSocket.send |
( |
|
self, |
|
|
|
msg |
|
) |
| |
Send message to the socket.
:param msg: String: message to be sent to the socket
Definition at line 42 of file tcp_socket.py.
indoor_positioning.communication.tcp_socket.TCPSocket.host |
indoor_positioning.communication.tcp_socket.TCPSocket.port |
indoor_positioning.communication.tcp_socket.TCPSocket.sock |
The documentation for this class was generated from the following file: