Hello, I have question aboute sendto function with Socket.
in msdn:
########################################################
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.
#########################################################
But parameter to [in] is user defined structure and it should be passed byVal (pointer), but VisualBasic 5.0 can't do it. (Pass user difened structured byVal).
It is very involved situation and I will be grateful to everybody who can help me. Actually I want to send broadcast message
Thanks in advance
tjn.web@mail.ee
in msdn:
########################################################
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.
#########################################################
But parameter to [in] is user defined structure and it should be passed byVal (pointer), but VisualBasic 5.0 can't do it. (Pass user difened structured byVal).
It is very involved situation and I will be grateful to everybody who can help me. Actually I want to send broadcast message
Thanks in advance
tjn.web@mail.ee