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 4534180
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:14:54+00:00 2026-05-21T14:14:54+00:00

I am new in C#. I made a very simple TCP server and TCP

  • 0

I am new in C#. I made a very simple TCP server and TCP Client. I am able to send some message from client to server. If I want see the message which came from client on server I am using button which view the message. Now my stupid question. How make a function which will react on new comming packet from client to view it imediately in textBox? Simple what I want>>> IF comes a new packet……DO SOMETHING.

  • 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-05-21T14:14:55+00:00Added an answer on May 21, 2026 at 2:14 pm

    Generally, a TCP server does this:

    1. Create a thread to listen for connection requests
    2. Do a TcpListener.AcceptTcpClient in the above thread
    3. When AcceptTcpClient accepts a connection, create a new thread
    4. In new thread, do a GetStream and then Read the stream.
    5. When data arrives, decode it and send a message to the GUI / Controller / whatever.
    6. Process the TCP message and send a response message to the TCP thread to Write on the stream the result of the processing.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a rather new C++ programmer. I have made a very simple game
I have a very simple server written in C and an equally simple client
I just made a very simple test app using documentation from MSDN. All I
I've made a very simple MEF sample which runs on .NET, but doesn't work
I am a very new programmer, I have made a couple basic applications, however
I made a new action filter (attribute, similar to [Authorize]) which authorizes access to
I installed new wordpress . and made some changes in twentyten theme.. only color
I am using cakePHP and is making a very simple message board. I came
I am trying to do something very simple: create a new branch. But I
This one very simple thing I can't find the right technique. What I want

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.