指定アドレスへの送信
int sendto (
SOCKET s,
const char * buf,
int len,
int flags,
const struct sockaddr * to,
int tolen
);
パラメータ
s
- [in] Descriptor identifying a (possibly connected) socket.
buf
- [in] Buffer containing the data to be transmitted.
len
- [in] Length of the data in buf, in bytes.
flags
- [in] Indicator specifying the way in which the call is made.
to
- [in] Optional pointer to a sockaddr structure that contains the address of the target socket.
tolen
- [in] Size of the address in to, in bytes.