1. TCP/IP 소켓 프로그램


1. TCP/IP 소켓 프로그램

개발 툴 : PYthon 3.11 통신 대상 : PC ↔ PC, PC ↔ 협동로봇(두산) 통신 방식 : Ethernet TCP/IP 통신 [PC ↔ PC] 노트북에 서버/클라이언트 프로그램 띄워서 개발 했고, 실제 물리적으로 PC를 분리해서 테스트 완료 했음 [PC ↔ PC] - 서버 측 프로그램 import socket import sys import win32event import winerror import win32api # 1. 프로그램 중복 실행 방지 mutex_name = "MyUniqueMutexName" mutex = win32event.CreateMutex(None, 1, mutex_name) if win32api.GetLastError() == winerror.ERROR_ALREADY_EXISTS: print("Another instance of the program is already running. Exiting...") sys.exit() PCTcpSvr_i...


#input

원문링크 : 1. TCP/IP 소켓 프로그램