tcp4u

new topic     » goto parent     » topic index » view thread      » older message » newer message

Reposting this as my original seems to have got lost!!
Hi All
    I'm trying to use TCP4U, I've got it all working both sending and
receiving data (on the backchannel) , the send fuction is fine, however if I
try receiving more than one byte at a time I get an error

sock_receive = tcp4u_receive(sock, 1, 1)
         if sock_receive[tcp4u_ret] = TCP4U_SUCCESS then
--   code snipped
         else
              appendText(IPDS_RE,sprintf( "\n tcp4u_receive error '%s'\n",
{tcp4u_error_string(sock_receive[tcp4u_ret])} ))

-- works fine but slowwwwly

But
sock_receive = tcp4u_receive(sock, 1000, 1)
       if sock_receive[tcp4u_ret] = TCP4U_SUCCESS then
--    code snipped
           else
          appendText(IPDS_RE,sprintf( "\n tcp4u_receive error '%s'\n",
{tcp4u_error_string(sock_receive[tcp4u_ret])} ))

-- gives me an error of 'Not a TCP4 return code'

    I've tried this on both W2K and XP, I do not need to do anything wth the
received data, I just want to clear the other devices buffer..
it's bound to be something I am doing wrong.... Has anyone got any
suggestions?

Pete.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu