Message 썸네일형 리스트형 [OMNET++] Messages and Packets(3) Information About the Last Transmission 아래 함수들은 packet을 전송하는 동안 걸린 시간을 구하는 함수인 getDuration()과 수신이 시작되었는지를 알려주는 bool형태의 isReceptionStart() 함수다. Identifying the Protocol dynamic_cast 연산자를 사용하면 해당 메시지가 특정 프로토콜인지 판별이 가능하며 사용법은 아래와 같다. Encapsulating Packets encapsulation과 decapsulation에 관련된 함수는 다음과 같다. encapsulate()를 통해 encapuslates된 packet은 해당 packet의 length를 포함한 packet이 된다. 가령, A packet에 B packet이 .. 더보기 이전 1 다음