Replies: 3 comments 4 replies
-
sorry for posting in wrong category. loop.py import socket NFCGate server detailsSERVER_HOST = '192.168.3.74' def connect_to_reader():
def communicate_with_server(card_connection):
def main(): if name == "main": and this is server.py #!/usr/bin/env python3 HOST = "192.168.3.74" class PluginHandler:
class NFCGateClientHandler(socketserver.StreamRequestHandler):
class NFCGateServer(socketserver.ThreadingTCPServer):
if name == "main": |
Beta Was this translation helpful? Give feedback.
-
@kleest any ideas on next step? Thank you for your good work. |
Beta Was this translation helpful? Give feedback.
-
@0dayfrp This is a very interesting concept. Unfortunately I will have to close this discussion as it is attracting low-quality interactions. Please open a new discussion with the following improvements:
|
Beta Was this translation helpful? Give feedback.
-
Hello, I'm trying to communicate from windows pc with Nfcgate server, I have not decided yet which is the best approach.
Can you please advise? below is an attempt I have made
import c2c_pb2.py, c2s_pb2.py
import socket
import socketserver
import struct
import sys
import datetime
from smartcard.System import readers
from smartcard.Exceptions import NoCardException
HOST = "0.0.0.0"
PORT = 5566
class PluginHandler:
# Existing PluginHandler code remains unchanged
class NFCGateClientHandler(socketserver.StreamRequestHandler):
# Existing init, log, and setup methods remain unchanged
class NFCGateServer(socketserver.ThreadingTCPServer):
# Existing NFCGateServer code remains unchanged
if name == "main":
NFCGateServer((HOST, PORT), NFCGateClientHandler).serve_forever()
Beta Was this translation helpful? Give feedback.
All reactions