Send a UDPpacket vector
The number of destinations sent to that worked, for each packet in the vector, all summed up. 0 is returned on errors.
Binds to C-function call in SDL_net.h:
extern DECLSPEC int SDLCALL SDLNet_UDP_SendV(UDPsocket sock, UDPpacket **packets, int npackets)
// send a vector of 10 packets using UDPsocket //UDPsocket udpsock; //UDPpacket **packetV; int numsent; numsent=SDLNet_UDP_SendV(udpsock, packetV, 10); if(!numsent) { printf("SDLNet_UDP_SendV: %s\n", SDLNet_GetError()); // do something because we failed to send // this may just be because no addresses are bound to the channels... }
SdlNet Class | Tao.Sdl Namespace | SDLNet_UDP_Bind | SDLNet_UDP_Send | SDLNet_UDP_Recv | SDLNet_UDP_RecvV | SdlNet.UDPpacket | SdlNet.UDPsocket