Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lughbh

    trouble with sockets and sendto()

    I get 22: Invalid argument I was suspecting whether I was passing a pointer wrong... maybe you can point it out? sendto (int s, const void *msg, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) ... myDst is not a pointer, so I have to pass it's location to satisfy sendto()...
  2. lughbh

    trouble with sockets and sendto()

    Hi, I have a short function which is trying to send an icmp message out a raw ipv6 socket. when I run the following code I get &quot;wrote -1&quot;... i.e. sendto() is returning an error. Can someone please tell me what I'm doing wrong? ----- #include <arpa/inet.h> #include <netinet/in.h>...

Part and Inventory Search

Back
Top