The Navision Socket Bus Adapter Interface

The ISocketBusAdapter interface manages the bus adapter and establishes the message bus.

ISocketBusAdapter Methods

Description

OpenSocket

Creates the socket server so that clients can connect to it.

 

ISocketBusAdapter Properties

Description

Port

Number that describes the port that the bus adapter interface will use.

Address

String that refers to the IP address or host name.

CloseSendWhenWaitForReply

If you set this property to Yes, the bus adapter interface will be able to send a single message. When one message has been sent, the interface will only be able to receive messages.

ReceivingTimeout

This property determines the maximum amount of time (in seconds) the bus adapter interface will wait between reading consecutive TCP packets.

Use a value bigger than 0 if you receive partial information. This depends on your network conditions.

Note that this property is different from the use of timeout in InMessage and OutMessage.

HTTPHeaderReceive

This property is normally used in connection with ReceivingTimeout. When it is set to Yes, the bus adapter will expect to receive HTTP headers and it will return a message when the HTTP headers have been received. This is useful when you write multi-bounce protocols that use the 100 Continue HTTP status, such as SOAP.

BytesToRead

Forces the bus adapter interface to finish reading when at least this number of bytes have been received. This does not override other timeout settings.

More information:

Navision Socket Bus Adapter: Setting Up Interfaces