Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8161549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:31:22+00:00 2026-06-06T18:31:22+00:00

I am trying to write a program that sends basic text files from one

  • 0

I am trying to write a program that sends basic text files from one computer to another using C++ over the internet (or a LAN). I was looking into Winsock but everything that I read made it seem like it was only for communication between a server and a client. I am not sure if this is what I am trying to do or if I am looking at a different problem.

EDIT: Thanks for the great answers guys. I kind of feel bad for having to choose a best one out of the lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:31:24+00:00Added an answer on June 6, 2026 at 6:31 pm

    In short: Yes, sockets are the way to go.

    “Server” and “client” in the sockets sense are generic terms – your system is running a variety of both at any given time. For example, your web browser operates as an HTTP client (where HTTP is a text-bounded mostly-synchronous protocol running over TCP/IP); Windows file sharing and remote desktop are “servers” that other systems connect into.

    The distinction between server and client in the sockets sense (really in the TCP/IP sense) is that a “server” socket listens for incoming connections from remote systems (refer to MSDN or man pages on bind(), listen(), accept()) whereas a “client” socket creates outgoing connections to remote systems (connect()).

    Beware that sockets programming can be a bit tricky. What you describe is a good learning exercise, but if you’re trying to get something done quickly, you might look at existing tools such as netcat.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a program with C# that sends text into other windows.
i am trying to write a program that close explorer then runs another program.
I'm trying to write a program that can stop and start services using SilverLight
I'm trying write a C program that sends an UDP packet to a given
I'm trying to write a program that reads 2 numbers from the user and
I am trying to write a program that will send GPS coordinates using telnet.
I am trying to write an SSL client that sends mail using the javax.mail
Im trying to write a program that forks and sends sort (linux) some words
I'm trying to write a program using MPI and I have a question that
I'm trying to write a program that would convert celcius to fahrenheit and visa-versa.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.