Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by Lance Robaldo
Wed, 22 Feb 2006 22:13
TServerSocket compatability...
Author: Lance Robaldo
Date: Wed, 22 Feb 2006 22:13
Date: Wed, 22 Feb 2006 22:13
27 lines
2061 bytes
2061 bytes
I posted this in the vcl.components.using group and then realized it SHOULD have been posted here. I appologize for the double post. If I write a program using TServerSocket to handle incomming messages, can other Vendors access my socket using other tools? I know I can easily write a client using TClientSocket, but can someone using Microsoft VB access my socket and send a message? Or is the interface created by TServerSocket Borland specific? My goal is to write an NT service application that just sits there waiting for data to process. When it gets the data, (the "data" is actually a big String) it will process it and return the data to the client program. I'm assuming that TSocketServer is the best way to do this, but I won't be writing the client program, another vendor will and I need whatever I do to be compatable with them. This project will probably not be run across the internet. In all likelyhood both programs will reside on the same machine. Am I even on the right track? Or is there some other component I should be using instead? Thanks, Lance Robaldo RRobaldo@WLTSoftware.com
Re: TServerSocket compatability...
Author: Remy Lebeau (TeamB)
Date: Wed, 22 Feb 2006 22:42
Date: Wed, 22 Feb 2006 22:42
45 lines
2673 bytes
2673 bytes
"Lance Robaldo" <RRobaldo@wltsoftware.com> wrote in message news:43fce21e$1@newsgroups.borland.com... > If I write a program using TServerSocket to handle incomming > messages, can other Vendors access my socket using other tools? Yes. That is the nice thing about using sockets for communication. They are vendor-independant and cross-platform. > I know I can easily write a client using TClientSocket, but can > someone using Microsoft VB access my socket and send a message? Yes. > Or is the interface created by TServerSocket Borland specific? The core socket interface is vendor-independant and standardized. Vendors can (and some do, like Microsoft) add custom extensions as well. > My goal is to write an NT service application that just sits there > waiting for data to process. When it gets the data, (the "data" is > actually a big String) it will process it and return the data to the > client program. That is perfectly fine. Sockets work very well for that, especially from an NT service. > I'm assuming that TSocketServer is the best way to do this, but I won't > be writing the client program, another vendor will and I need whatever I > do to be compatable with them. It will be. > This project will probably not be run across the internet. In > all likelyhood both programs will reside on the same machine. In that case, you have additional options available. Named pipes work particularly well on NT-based system. As long as the vendor is targetting the NT platform, then they can access a pipe that your service runs. Sockets tend to be more flexible then pipes, though. Gambit
Re: TServerSocket compatability...
Author: Lance Robaldo
Date: Wed, 22 Feb 2006 23:25
Date: Wed, 22 Feb 2006 23:25
8 lines
1256 bytes
1256 bytes
Thanks Gambit. That answered all my questions... Now if I can just find a way to write a SOAP server using Document/Literal instead of RPC, I'll be able to finish this project. Lance Robaldo RRobaldo@WLTSoftware.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads