Home/Support/Support Forum/can i use both tcp and udp sockets at the same time
New and improved user forum site coming soon
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

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

0 votes
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.
asked Mar 5, 2015 in Rabbit Software by john_cfa New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

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

Regards,
Peter
answered Mar 6, 2015 by petermcs Veteran of the Digi Community (1,132 points)
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?
...