| Start |
|---|
| Hello TCP Client This program is complimentary to Hello TCP Server program, you can run either of them to check the validity of each other. The program flow is quite common with Hello TCP server, so make sure to take a look at that too. Here's the code - |
| Hello TCP Server Let me start by saying you should first visit Beej's Guide to Network Programming (opens new window) and give it a quick read, which explains most of this stuff a bit more verbosely. We'll be creating a simple TCP server here which will say "Hello World" to all incoming connections and then close them. Another thing to note is, the server will be communicating to clients iteratively, which means one client at a time. Make sure to check out relevant man pages as they might contain valuable information about each function call and socket structures. We'll run the server with a port, so we'll take an argument for port number as well. Let's get started with code - The following program runs as - |
Read Article
https://develop.horje.com/learn/1434/reference