Setting Up aSocket Stream Client Server Connection un RTLinux I found
the following troubles:
The Server does not seem to send SIGIO signal to Client on sending
the message (or is the client that does not linsten to the signals..)
What I've done is:
On server:
mysock = socket(AF_INET, SOCK_STREAM, 0)
bind.....
listen....
ClientSock=(accept(......))
send(ClientSock, buf,100);
On Client:
mysock = socket(AF_INET, SOCK_STREAM,0);
connect(......)
fcntl(mysock, F_SETOWN, getpid());
signal(SIGIO, HandSigio);
while(1)
sleep(1);
then the event handler:
void HandSigio(int sig)
{
read(mysock, buf, dim);
....
}
The trouble I never have the reception of the socket packet...
what's wrong?
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/