Questions tagged [sendto]

sendto() is a system call used to transmit a message to another socket.

sendto() is a system call used to transmit a message to another socket. It is used on a connection-mode socket.

Reference:

217 questions
0
votes
1 answer

Inno Setup how to merge 2 different “send to” filenames?

In the [Icons] section I created 2 entries, the first will move any image to the DropWall folder, the second will launch my app InsideWallpaper.exe using the same image: [Icons] Name: "{sendto}\FFStyled (I) set InsideWallpaper image"; Filename:…
frankell
  • 131
  • 5
0
votes
1 answer

send_to returns EINVAL in udp

I am creating a simple file transfer application, but send_to is returning EINVAL when i am trying to send from server side to client, while both send_to and recv_from are working fine on the client side. port_number, portno, hostname are passed as…
Arka Pal
  • 265
  • 2
  • 10
0
votes
1 answer

Sockets sendto() returns EINVAL after previous successful call

I've modified this C datagram (UDP) socket client example: #include #include #include #include #include #include #include #include #include…
CorellianAle
  • 645
  • 8
  • 16
0
votes
1 answer

How can I put the date in a shortcut?

Im trying to make a SendTo shortcut to a folder whose name changes daily to the current date in the format dd.mm.yyyy . Is there a way to put the current date in the folder path? I have no knowledge of programming
0
votes
0 answers

C - Mavlink program : sendto fails and returns EINVAL while connecting to a drone

I'm trying to use a mavlink sample developed by Parrot to control a Bebop2 using mavlink protocol (link here). In order to send a message to the drone, they use the sendto function but I encounter an issue I cannot resolve : everytime I try to make…
0
votes
0 answers

sendto system call returning with EINVAL

I'm making an executable in Android. This will be used for sending ARP packets, but the sendto command is failing with EINVAL. The same piece of code is working on ARM, but failing on Cortex A9. Here is the code snippet: int sendArp( const char…
webgenius
  • 856
  • 3
  • 13
  • 30
0
votes
0 answers

Directed UDP to IP address that doesn't exist

I am experiencing slowdowns when attempting to send a UDP message to an IP address that is non-existent. We read a list of IP/ports out of a configuration file and expect that those combinations will exist. In some situations, the remote machine may…
Jason
  • 2,147
  • 6
  • 32
  • 40
0
votes
1 answer

Android Studio Email Intent. Have recipient field filled when opening email client

i'm fairly new to java and i'm having a problem with email intents. I am developing an app and i made an email intent but i dont know how to make sure that the recipient field isn't the result of the user input in an edit text box, i want that…
0
votes
2 answers

C++, UDP, sendto needs delay to work

I am programming a UDP Relaying Server in C++. But I have a problem. I have a basic loop that just calls recvfrom(), checks for errors in the packet, then reads the "target" out of the packet and uses sendto() on the same socket to send a packet to…
L. Terrat
  • 47
  • 1
  • 9
0
votes
1 answer

UDP sendto() gives "invalid user space address" error

UPDATE: I just initialized the struct hardcoded in the problematic function and i still got the error! void sendjoin(unsigned int ipaddress, unsigned short port, unsigned short preferredID){ printf("Sending join-request...\n"); char…
Hyrikan
  • 59
  • 7
0
votes
0 answers

how to pass commandlinearguments from to a Running Application

i'm working on application that gets files names from Sent-To menu and add them to a listbox using this code: For i As Integer = 0 To My.Application.CommandLineArgs.Count - 1 ListBox1.Items.Add(My.Application.CommandLineArgs(i)) …
Ashraf Emad
  • 183
  • 10
0
votes
1 answer

sendto not working on VxWorks

I asked this question before and had no resolution (still having the problem). I am stumped because the function returned without error and NO DATA was sent! This code works on Linux ... the VxWorks version does not work (sendto does not send,…
Xofo
  • 1,256
  • 4
  • 18
  • 33
0
votes
2 answers

Neither ld wrap nor LD_PRELOAD working to intercept system call

I am trying to use -Wl, -wrap=sendto -Wl, -wrap, sendto in my final g++ link command that links my app to replace the standard sendto function with my own. I compile the following source code with: gcc -c -o wrap.o wrap.c and include the wrap.o in…
Waslap
  • 572
  • 3
  • 23
0
votes
1 answer

why sendto cost much more than recvfrom

I wrote a very simple program that one PC doing udp sendto, and another PC doing recvfrom. On 1Gbps ethernet link, the sender side cost 13% CPU but the receiver side cost only 5%. Anyone know why sendto cost so much higher than recvfrom,and any good…
Patrick
  • 51
  • 1
  • 2
  • 6
0
votes
0 answers

Abort trap: 6 on sendto

On Mac OS X, I have an Abort trap: 6 when I call the sendto function (few milliseconds after actually). Here the code: ssize_t writeToSocketUDP(SocketUDP *sock, const AdresseInternet *adresse, const char *buffer, int length) { if (sock == NULL…
Mathieu
  • 311
  • 2
  • 12