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

Anylogic Resource Send To block causing error not in network

I have my product moving through this logic and I want that when the product reaches the seizeDepthFilter; a resource of resourceBufferTotes is sent from its home node to the current location of the product defined in the resourceMoveTo block. When…
0
votes
2 answers

Can't seem to save the client's address to sourceMsgs[j]

The title says it all, it might be a simple thing but I'm pretty much new at programming hence the stupid question.. I have: printf("sourcemsg: %s", inet_ntoa(sourceMsgs[j].sin_addr)); to see if the ip address that is saved in sourceMsgs[j] is the…
Jan Frank
  • 3
  • 2
0
votes
1 answer

Reasons for rare sendto()/recvfrom() issues under Winsock?

We recently observe rare UDP communication issues that show the following symptoms: A socket sendto() call fails with error WSAENOBUFS (10055) A subsequent recvfrom() call on this socket does not receive anything, even though Wireshark shows that…
Daniel Pauli
  • 963
  • 1
  • 7
  • 8
0
votes
1 answer

Perf Profiler Reporting Excess Use of "do_syscall_64"

I'm attempting to optimize a program I wrote which aims to replicate network flows by sending packets to a specified MAC address. The main loop of my program that is responsible for the sending and removal of flows is as follows: while (size != 0…
NolanRudolph
  • 106
  • 11
0
votes
1 answer

C Networking: Sendto() returning Errno 22, EINVAL

I'm attempting to generate a packet from scratch with Layer 2, 3, and 4 components (namely Ethernet, IP, and UDP). My socket is configured to use SOCK_RAW as the type and IPPROTO_RAW as the protocol, so that my program can be used to send different…
NolanRudolph
  • 106
  • 11
0
votes
2 answers

How can we send data to ipv4 and ipv6 google interface using non connected socket udp in C?

I'm trying to send some random datagram to host www.google.fr to both ipv4 and ipv6 interfaces, this work fine for ipv4 but not for ipv6. I wanted to do it with a single not-connected socket via UDP protocol. I did something using getaddrinfo, and…
Omar Aldakar
  • 505
  • 2
  • 8
0
votes
0 answers

sendto domain instead of an IP

I have two machines on two different networks. The only thing I know is their http addresses. One of the machines is listening on port UDP port 9500 and another needs to send messages to this port. Currently on my test platform I'm using hardcoded…
flashburn
  • 4,180
  • 7
  • 54
  • 109
0
votes
1 answer

linux sendto() is flushing buffer?

#define BUFSIZE 256 int sockfd; char buf[BUFSIZE]; struct sockaddr_in server_addr, client_addr; sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); server_addr.sin_family = AF_INET; server_addr.sin_addr.s_addr =…
bean123456
  • 15
  • 5
0
votes
0 answers

socket has assigned server port 0 after sendbase C UDP

I'm writing a client-server application via udp. I did these steps: memset((void *)&servaddr, 0, sizeof(servaddr)); servaddr.sin_family = AF_INET; servaddr.sin_port = htons(serverport); if(inet_pton(AF_INET, argv[1], &servaddr.sin_addr) <…
0
votes
0 answers

Socket Programming in C language : Unable to broadcast a message from FreeBSD client to Linux server . Broadcast IP should be 255.255.255.255

Problem statement -- I am able to establish connection with broadcast IP 255.255.255.255 when both applications are in two different Linux machines. Linux Machine where server is running is replying when client broadcast-ed a message to the above…
Arish Baig
  • 31
  • 1
0
votes
1 answer

(Socket.SendTo) How do I response/send back data to the client that my server began receive? C#

I'm doing an UDP server, I can receive data fine but I don't know how to store the endpoint to send data back. The commentary at the ultimate line of SetupServer() is where i dont know how to get the EndPoint. This is my server code: static private…
Mario1159
  • 71
  • 1
  • 8
0
votes
1 answer

Sendto: invalid argument error

I'm creating a concurrent UDP socket for a university project. The client waits for a stdin command, then creates a new process and a new socket with the function child_job. The server receives the command from the client, creates a new process that…
leop
  • 41
  • 7
0
votes
1 answer

sendto() fails for Custom UDP Protocol, using Seagull Protocol Traffic Generator

I'm brand new to working with networking, protocols, and sockets but this issue has been bothering me for a few days and I just cannot seem to find a solution. I am using Seagull, an open source multi-protocol traffic generator (source code), to…
tkantn
  • 11
  • 2
0
votes
1 answer

Sockets, client server communication using SOCK_DGRAM, epoll

I'm trying to write a program with AF_INET, SOCK_DGRAM, where client connects to server sends it message "First message" and then the server responds to client with "Second message". Q1: In my code server receives "First message", however client…
grzegorzs
  • 486
  • 5
  • 11
0
votes
1 answer

How to handle space in file path while using right-click Send To on Windows 10

I made a batch file that receives one of its parameters from right-clicking on a file and sending it to my batch file. The problem is that it crashes if the path has a space in it. For example, a file in C:\temp\CarRide works, but a file in…
AaronK
  • 1