I have created a TCP client in BM, but not a server. You can use TSocketStream (there's an httpstream module which uses TSocketStream, and I used it as an example). I found TSocketStream to be a bit ugly, so I pulled out the lower-level calls from it and just use those. It's still only a couple of lines to set-up a socket.
I think you can use the lower-level calls to set-up a server, but I haven't tried it.
I think you can use the lower-level calls to set-up a server, but I haven't tried it.