mirror of
https://github.com/SantaSpeen/winConnect.git
synced 2026-04-18 22:40:05 +00:00
[+] add examples
This commit is contained in:
17
examples/client_console_handled.py
Normal file
17
examples/client_console_handled.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from winConnect import WinConnectClient
|
||||
|
||||
connector = WinConnectClient('test')
|
||||
|
||||
def console():
|
||||
conn = connector.connect()
|
||||
while True:
|
||||
i = input(":> ")
|
||||
if i == "exit":
|
||||
break
|
||||
conn.send_data(i)
|
||||
data = conn.read_pipe()
|
||||
print(f"({type(data)}) {data=}")
|
||||
conn.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
console()
|
||||
Reference in New Issue
Block a user