Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
~2K People Reached
Favorite Forums
Favorite Tags
static ssize_t write_server(int sd, const void *buf, size_t len, struct sockaddr_storage *to) { ssize_t nb; for (;;) { nb = sendto(sd, buf, len, 0, (struct sockaddr*) to, sizeof(to)); --> return -1 |
|
Re:
Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the … |