SocketBusAdapter & BytesToRead

fufikkfufikk Member Posts: 104
Hi,

has anyone tried to set BytesToRead on a SBA? I set it to let's say to 3 and whenever clients sends stuff do Navision it reads it all before fireing the MessageReceived event. Any ideas?

Below is the piece of code which starts the SBA:
IF ISCLEAR(CC2) THEN
  CREATE(CC2);

IF ISCLEAR(SBA) THEN
  CREATE(SBA);

CC2.AddBusAdapter(SBA, 0);
SBA.BytesToRead(3);
SBA.OpenSocket(8001, '');
Sign In or Register to comment.