2017/02 썸네일형 리스트형 비연결형 소켓 OF (C++) 편 총 3개의 Layer로 구성됨 16 byte : 머신, 혹은 App 을 구별할 GUID(UUID)1 byte : 0 ~ 255 까지의 message type 분류data bytes : 실제 데이터 * c# 용 비연결형 udp 소켓은 ( http://yamecoder.tistory.com/367 ) Communicaotr.h 싱글톤 Singleton 는 ( http://yamecoder.tistory.com/368 )#pragma once /** * [ Udp Communicator ] * * @author yamecoder * @version 17/02/24 */ #include "Singleton.h" #include "ofxNetwork.h" #include "ofMain.h" class Commun.. 더보기 Generic Singleton Base Class 출처 : http://vallista.tistory.com/entry/1-Singleton-Pattern-in-C #pragma once //http://vallista.tistory.com/entry/1-Singleton-Pattern-in-C template < typename T > class Singleton { protected: Singleton() { } virtual ~Singleton() { } public: static T * GetInstance() { if (m_pInstance == nullptr) { m_pInstance = new T; } return m_pInstance; } static void DestoryInstance() { if (m_pInstance) { delet.. 더보기 이전 1 다음