Logo Search packages:      
Sourcecode: jacktrip version File versions  Download package

void JackTrip::checkIfPortIsBinded ( int  port )

Check if UDP port is already binded.

portPort number

Definition at line 454 of file JackTrip.cpp.

Referenced by start().

  QUdpSocket UdpSockTemp;// Create socket to wait for client

  // Bind the socket
  if ( !UdpSockTemp.bind(QHostAddress::Any, port, QUdpSocket::DontShareAddress) )
    UdpSockTemp.close(); // close the socket
    throw std::runtime_error(
        "Could not bind UDP socket. It may already be binded by another process on your machine. Try using a different port number");
  UdpSockTemp.close(); // close the socket

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index