I've got two Linux systems (A & B) and I've got some RxSock
programs that run between them. I'm slightly confused.
Could someone with a better understanding of this
stuff confirm or deny the things below please? Thanks.
(Ignore the coding style, it's the concepts that're important.)

A

<initilisation etc.>
do forever
  pull text
  rc=SockSend(socket,text)
end

B

<initialisation etc.>
...
rc=SockRecv(sock,'recvar',maxlength)
...

Now, here, the SockRecv will return when maxlength
bytes have been received. Yes/no?
Or the socket on A has been closed (e.g. ctrl-C). Yes/no?
As such, there's no way to get B to react when you press
the return key on A. Yes/no?


Whereas, if I have this:


A

<initilisation etc.>
do forever
  pull text
  rc=SockSend(socket,text)
  rc=SockRecv(socket,'ansvar',maxlength)
end

B

<initialisation etc.>
...
rc=SockRecv(sock,'recvar',maxlength)
rc=SockSend(sock,text)
...

then the SockRecv in A tells B that it's waiting,
which somehow or other causes B to complete its
SockRecv *before* maxlength bytes have been received.
Yes/No?


I've shuffled round the net looking for a good RxSock tutorial and can't find one - they're either not there any more or they tell me nothing really useful.

Thanks for any help.

Rod

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to