Would anyone have a clue on how to suppress echo on a TCP connection?
The problem is when I use
IOCall(6,(BYTE *)&t->RcvFifo,cabuff,strlen(cabuff)); // NW -> FIFO
in my receiver function it echos the cabuff back to the other machine.
After I spawn my function;
t = TCPAlloc();
t->r.StCall = NoTel;
then in NoTel I tried every bit TELB_AE etc.
I can't seem to find any clues on the pcib() function.
Gary seems to have made some use of it in his example below
which sadly turns the echo on.
// See pg 62 of programmer guide
// From a code snip of Gary Morris
int NoTel(TCP_t *t, int typ, int mode)
{
The problem is when I use
IOCall(6,(BYTE *)&t->RcvFifo,cabuff,strlen(cabuff)); // NW -> FIFO
in my receiver function it echos the cabuff back to the other machine.
After I spawn my function;
t = TCPAlloc();
t->r.StCall = NoTel;
then in NoTel I tried every bit TELB_AE etc.
I can't seem to find any clues on the pcib() function.
Gary seems to have made some use of it in his example below
which sadly turns the echo on.
// See pg 62 of programmer guide
// From a code snip of Gary Morris
int NoTel(TCP_t *t, int typ, int mode)
{
if (typ==4)
{
{
// see inc/tcp.h
t->TelBits=0; //TELB_TEL|TELB_AE|TELB_WES|TELB_UNI|TELB_PHYS;
pcib(t,0xff); pcib(t,0xfb); pcib(t,1); /* WILL echo */
pcib(t,0xff); pcib(t,0xfb); pcib(t,3); /* WILL suppress go ahead */
t->TelBits|=TELB_LGA;
t->TelBits=0; //TELB_TEL|TELB_AE|TELB_WES|TELB_UNI|TELB_PHYS;
pcib(t,0xff); pcib(t,0xfb); pcib(t,1); /* WILL echo */
pcib(t,0xff); pcib(t,0xfb); pcib(t,3); /* WILL suppress go ahead */
t->TelBits|=TELB_LGA;
t->TelState=0;
}
return(1);
}