|
-
November 11th, 2004, 01:00 PM
#1
sockets question
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
-
November 11th, 2004, 01:30 PM
#2
Re: sockets question
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
);
Last edited by chi_luci; November 12th, 2004 at 03:18 AM.
-
November 11th, 2004, 05:33 PM
#3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|