Published
Wednesday, February 04, 2004 9:27 AM
by
mtaulty
I started writing a small sample adapter for BizTalk 2004 to talk plain old TCP sockets. I've posted the sample here - feel free to take it and experiment with it but it's completely without any kind of implied warranty or rights.
At this point this adapter supports sending data down TCP connections to a socket that is configured by hostname and port number. You can also configure whether the socket should be "kept alive" in between message sends or whether it should be closed and re-opened each time it's used.
The adapter also has configuration for whether it should be performing its work (it uses NetworkStreams) in a synchronous or asynchronous manner but the asynch support hasn't been written just yet.
I'll update this over the next few days - items to be added are likely to be;
1) Decent handling for receiving sockets being closed on us.
2) Asynchronous support.
3) Receive functionality.
4) Anything else that comes to mind as I go along.