0
다른 프로토콜, UDP, TCP, RAW 등으로 하나의 인터페이스 (예 : 이더넷 포트)에 여러 개의 소켓을 연결할 수 있습니까? 이더넷을 통해 패킷이 전송되는 경우 올바른 소켓 만.동일한 인터페이스를위한 다중 프로토콜
다른 프로토콜, UDP, TCP, RAW 등으로 하나의 인터페이스 (예 : 이더넷 포트)에 여러 개의 소켓을 연결할 수 있습니까? 이더넷을 통해 패킷이 전송되는 경우 올바른 소켓 만.동일한 인터페이스를위한 다중 프로토콜
소켓 과 이더넷 포트를 말할 때 사용되는 포트 번호 사이의 관계에 대해 이야기하고 있다고 생각합니다.
A Socket (TCP/UDP) Works in the Transport Layer.
A port number comes here in the Layer and this is not the Ethernet port.
You can have a TCP Socket bound to say port 88 as well as a UDP Socket bound to port
88.
You may also have raw sockets, which can directly use the IP Headers.
This may require root/administrative priviledge.
Here seems you need to decode the IP packets and get to the specific protocol
on top it.
(There is a field in the IP header called Protocol which mentions which
upper layer protocol the packet belongs to)
So there can be several sockets, which finally get the data from your ethernet port.
http://en.wikipedia.org/wiki/Network_socket
http://en.wikipedia.org/wiki/Raw_socket
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzab6%2Fhowdosockets.htm
, 기본 개념은 다음 링크를 참조하시기 바랍니다