tcp: Implement poll function

Timeout still to be done, but we should first try to figure out what
sort of response time is expected from a PLC.
cotp: Handle connection setup

When connecting the cotp layer we need to wait for a response from the
other PLC before we can really claim to be connected.