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 );




Reply With Quote