CFSocketCreate request is not going via UDP

153 Views Asked by At

I have used below code to create socket.

CFSocketRef socket = CFSocketCreate(kCFAllocatorDefault, PF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, NULL, NULL);

I have given SOCK_DGRAM, IPPROTO_UDP as parameters to go request via UDP, But still request is going via TCP only checked using Wireshark.

Any help would be really appreciated.

0

There are 0 best solutions below