Download

How create a socket UDP

I need create a socket UDP , but when i create one , this don´t send and don´t recive data, and i don´t know why

this is the code :
int n = 1400
FIPv4Address posSocket(192, 168, 134, 188); //ip
addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr(SOCKTYPE_Datagram, 12000);
FIPv4Endpoint Endpoint(posSocket.Value, 12000);
this->conexion = FUdpSocketBuilder(TEXT(“SOCKET A DYNAMICS”)).BoundToEndpoint(Endpoint);
this->conexion->SetNonBlocking();
this->conexion->SetBroadcast();
this->conexion->SetReuseAddr(true);

this->conexion->Send(DATA, 1400, bytesleidos);
this->conexion->Recv(DATA, n, bytesleidos);

thank you.