Linux socket + real-time signals

T

The Doctor

Hey people,

I have two applications:

the server, which creates a server socket, waits for a real-time signal,
and if it receives one, it creates a client socket.

The client, which will connect to the server. This will generate a real-
time signal at the server, who will create a client socket for this
client.

This all works well, and I see a client appearing at my server, on a
connection attempt. But then, the client tries to send the server-side
client socket some data. This is where it all goes wrong. The client
sends, but sometimes, the server doesn't receive it. The weird thing is,
it receives it when the client is killed. Some other times, the
application just works, and the server receives the data at the moment it
is sent from the client.

I think this could be some problem with an output buffer at the client or
so? Is there anyone who knows what the problem is?

Grtz, The Doctor
 
T

The Doctor

I believe this may be off-topic.

To (attempt) to answer your question: Have you tried either manually
flushing the client socket, or setting TCP_NODELAY on it? (to force the
socket to send the data right away).


Best Regards
JL

How do I manually flush a socket?

Grtz, The Doctor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top