만약에 컴터에 10mbps, 100mbps,1gbps짜리 이더넷 카드 3장이 꽂혀있는데
socket(AF_INET,SOCK_DGR..생략)
이런식으로socket디스크립터를 얻게 되면 이디스크립터는 어느 이더넷카드의 디스크립터인가요? socket함수로 특정 이더넷카드를 통해 socket통신하고싶을때는 어떤식으로 해야할까요..
에러처리를 하고있는데요. 이거 다른분들은 보통 어떻게 하시는지 궁금하네요. 지금까지 에러처리하는 소스를 본적이 없는데. 물론 매뉴얼보면 에러가 되는 케이스가 있습니다.
EINVAL The mutex was created with the protocol attribute having the value PTHREAD_PRIO_PROTECT and the calling thread's priority is higher than the mutex's current priority ceiling. EAGAIN The mutex could not be acquired because the maximum number of recursive locks for mutex has been exceeded. EDEADLKThe current thread already owns the mutex. EPERM The current thread does not own the mutex.