Is there a tcp socket for ipv6 addresses

I like using TCP sockets and use my own conventions but the external clientsocket does not seem to accept ipv6 addresses. is there another option.
regards Atez