Ubergeek Question:Gettin Service for Me Winsocks?

      • I am attempting to explore client/server programming with Borland C++Builder 5. I have a few questions that I can’t seem to find answers to in any of my three books(Borland manual,MS Vis C++ and MS Windows Programming5th). The attempt is a client with a textbox and a “Send” button, and a server on another PC with a textbox where the client’s text should end up if it gets there. -So far it never has, I just get various socket error messages. The server (on the other machine) has been built properly (without dependency on the Borland DLLs).
  • The Borland references a method for sending simple text back and forth across a network connection, but never says what the service is. Do you know what-n-th-ell service they’re using to do this? I wanted to avoid having to set up an actual file server at first.
  • How do I enter the server address in the clientsocket address property? Borland says to use the server’s name and the service you want an dlet the OS set the port, but that don’t werk so far. I set both names in both host files, set the server’s IP to 10.0.0.1 and the client to 10.0.0.2. I have tried using the name, the path/name, and the IP address and none work. Also I note that the client socket starts up the modem when I activate the clientsocket. How do I tell the clientsocket that the server is on the LAN and not on the internet connection? The books seem to imply that either it knows automatically, or it makes no difference-? - MC

There are over 100 borland app builder newsgroups listed. They might also be a good a place to ask and based on the level of expertise evident in these groups you would likely got a quick and accurate response.

Just plucking one out of the thousands of messages at random that might (or might not)relate to your question from the borland.public.cppbuilder.internet newsgroup.

Paul wrote:
>
> Can I send emails without connecting to the smtp server of my ISP? Can I be
> like, a smtp server myself and send the emails directly to my receipants’
> mailbox? If it is possible, how? Any related URLs or source codes would be
> useful, thanks.

Sure, this can be done. A good starting point for reading material
would be RFC 821:

http://info.internet.isi.edu:80/in-notes/rfc/files/rfc821.txt

And unless you have a nice 3rd party DNS library you’ll also need to
read RFC 1034 and 1035 which tell you how to look up the MX and A
records:

http://info.broker.isi.edu/in-notes/rfc/files/rfc1034.txt

-jasonC