hello,
using a udp socket, is it ok and legal to do some thing like this :
pSocket->SendTo( "http://www.mydomain.com" ), and to receive the
message on a server ?
thanks
Printable View
hello,
using a udp socket, is it ok and legal to do some thing like this :
pSocket->SendTo( "http://www.mydomain.com" ), and to receive the
message on a server ?
thanks
no, I guess it's not.. u must supply a SOCKADDR structure as described in MSDN..
Code://MSDN
Call this member function to send data to a specific destination.
int SendTo(
const void* lpBuf,
int nBufLen,
UINT nHostPort,
LPCTSTR lpszHostAddress = NULL,
int nFlags = 0
);
int SendTo(
const void* lpBuf,
int nBufLen,
const SOCKADDR* lpSockAddr,
int nSockAddrLen,
int nFlags = 0
);
[ Moved thread ]