can i use both tcp and udp sockets at the same time

I am trying to write code that uses tcp socket to receive data and udp socket to transmit data. The udp socket fails when I try to open it.

Have you defined the MAX_UDP_SOCKET_BUFFERS macro? If you don’t have this done it defaults to 0.


Thanks for responding,
I do have the MAX_UDP_SOCKET_BUFFERS defined as 1 but I get a warning about redefining the max socket buffers when I compile. This doesn’t happen when I compile the UDP examples.

Have you made sure you define MAX_UDP_SOCKET_BUFFERS before the #use “DCRTCP.lib” line in your code?