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
2
votes
1 answer

Why can't I use more than 20 files with my Perl script and Windows's SendTo?

I'm trying to emulate RapidCRC's ability to check crc32 values within filenames on Windows Vista Ultimate 64-bit. However, I seem to be running into some kind of argument limitation. I wrote a quick Perl script, created a batch file to call it,…
vlee
  • 1,369
  • 3
  • 14
  • 23
2
votes
3 answers

How to send float[] via UDP + Unsigned-Long-Operator-Curiosity

I am writing an C++ Application which reads several voltages from a device. I receive these measurements in an float[] and I want to send this array via UDP to a MATLAB-Script. the C++-function sendto needs to get an char[] buffer and I really have…
Roland
  • 133
  • 2
  • 12
2
votes
2 answers

UDP non-blocking socket on a real-time OS: sendto() and recvfrom() can return with partial message?

This is my first message here. I'm working with a non-blocking UDP socket on a real-time OS (OnTime and VxWorks). I have read the documentation and some forums but I have some doubts about 'atomicity' of sendto() and recvfrom() functions: sendto()…
Emanuele
  • 91
  • 1
  • 2
  • 7
2
votes
2 answers

How do I properly handle spaces in file names passed as arguments to a PowerShell script via a SendTo shortcut?

I've written a (very) simple script that appends the current date to a given file name in PowerShell, and I've set it up with a SendTo shortcut for easy access. However, it doesn't handle file names with spaces in them very well. If a file name is…
Dylan R
  • 213
  • 3
  • 11
2
votes
2 answers

recvfrom: Bad address, sendto: Address family not supported by protocol

i'm trying to implement a little UDP-Server/Client Application in C and got two errors on Server-side: recvfrom: Bad address && sendto: Address family not supported by protocol. I searched for the mistake and googled for answers but, unfortunately,…
flumingo
  • 513
  • 2
  • 7
  • 24
1
vote
2 answers

Mail send by xpages form change group by user of group in sendTo field

I developed an application that has a form where this form once completed is sent by e-mail as the list of selected group or user in the container. The problem is that when I choose to send e-mail to a group and click on the submit button, check the…
1
vote
1 answer

Socket C++ program successfully compiled crashes at runtime

I've been struggling with this for hours, but I couldn't manage to find out what am I doing wrong. This is a very simple program that SHOULD send out a simple UDP packet to a given IP on a given port. g++ compiles this program without any error or…
Matteo Monti
  • 8,362
  • 19
  • 68
  • 114
1
vote
1 answer

UDP sendto() became very low, python

once i run a .py to send 10000 UDP(lengh is: 110) using socket sendto(), a server receive about 400 msgs quickly, and later became very slow for more than 10s each msg. it is weird if i run the .py again, another 400 msgs received quickly. is there…
whi
  • 2,685
  • 6
  • 33
  • 40
1
vote
0 answers

How do udp sockets actually work internally?

I am trying to reduce packets manipulation to its minimum in order to improve efficiency of a specific program i am working on but i am struggling with the time it takes to send through a udp socket using sendto/recvfrom. I am using 2 very basic…
pam_sim
  • 11
  • 2
1
vote
1 answer

How to force client in UDP to open port when sending with sendto

I have simple server and client in UDP (WinSocks/C++). I send datagram client -> server via sendto, and reply from server to client using the ip and port obtained from recvfrom function. I found out that: Every sendto from client is being sent from…
PiotrK
  • 4,210
  • 6
  • 45
  • 65
1
vote
1 answer

TCP messages getting coalesced

I have a Java application that is writing to the network. It is writing messages in the region of 764b, +/- 5b. A pcap shows that the stream is getting IP fragmented and we can't explain this. Linux 2.6.18-238.1.1.el5 A strace shows: (strace -vvvv…
The_Viper
  • 391
  • 1
  • 6
  • 14
1
vote
1 answer

"Invalid argument" when sending UDP packet, but which?

My C++ application is sending binary data as UDP packets. The sendto() call returns EINVAL (Invalid argument), but I don't see anything wrong with the parameters I'm passing. I did an strace of the application and here are the revelant system…
Gene Vincent
  • 5,237
  • 9
  • 50
  • 86
1
vote
1 answer

How to fix `EPERM` error when trying to use `sendto()` with Ethernet `socket(AF_INET, ..., ...)` (IP output packets) on Linux

Here is a massively reduced code sample, following my code from my eRCaGuy_hello_world repo here as a pattern: socket__geeksforgeeks_udp_client_GS_edit_GREAT.c: #define SOCKET_TYPE_UDP_IPV4 AF_INET, SOCK_DGRAM, 0 // Create an IPv4 UDP…
Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265
1
vote
1 answer

TCP Socket hanging - both sides stuck in sendto()

We have an linux application (we don't have the source) that seems to be hanging. The socket between the two processes is reported as ESTABLISHED, and there is some data in the kernel socket buffer (although nowhere near the configured 16M via…
The_Viper
  • 391
  • 1
  • 6
  • 14
1
vote
1 answer

C# Socket.SendTo in a loop eventually causes SocketException (depends on the router)

I am doing some basic Socket messaging. I have a routine that works well but there is a problem under load. I'm using UDP to do a connectionless SendTo to basically do a ping-like operation to see if any of my listeners are out there on the LAN. …
JayDee
  • 123
  • 1
  • 10