Click here to Skip to main content
15,905,915 members
Home / Discussions / C#
   

C#

 
AnswerRe: Plotting a line graph in c# and retaining the previous graphs. Pin
OriginalGriff23-Jul-18 2:04
mveOriginalGriff23-Jul-18 2:04 
GeneralRe: Plotting a line graph in c# and retaining the previous graphs. Pin
Dipk1123-Jul-18 20:52
Dipk1123-Jul-18 20:52 
GeneralRe: Plotting a line graph in c# and retaining the previous graphs. Pin
Gerry Schmitz24-Jul-18 10:27
mveGerry Schmitz24-Jul-18 10:27 
Questioncreate separate XML file based on html tags in a string in C# Pin
sudipta saha20-Jul-18 19:40
sudipta saha20-Jul-18 19:40 
AnswerRe: create separate XML file based on html tags in a string in C# Pin
Eddy Vluggen20-Jul-18 23:46
professionalEddy Vluggen20-Jul-18 23:46 
AnswerRe: create separate XML file based on html tags in a string in C# Pin
Gerry Schmitz22-Jul-18 8:59
mveGerry Schmitz22-Jul-18 8:59 
GeneralC# Program Control Flow Pin
etl201620-Jul-18 11:20
etl201620-Jul-18 11:20 
GeneralRe: C# Program Control Flow Pin
OriginalGriff20-Jul-18 20:04
mveOriginalGriff20-Jul-18 20:04 
GeneralRe: C# Program Control Flow Pin
Gerry Schmitz22-Jul-18 8:45
mveGerry Schmitz22-Jul-18 8:45 
GeneralRe: C# Program Control Flow Pin
Richard Deeming23-Jul-18 1:54
mveRichard Deeming23-Jul-18 1:54 
QuestionPlacing a control in a vertically scrolled panel Pin
Member 1207484919-Jul-18 13:40
Member 1207484919-Jul-18 13:40 
AnswerRe: Placing a control in a vertically scrolled panel Pin
BillWoodruff19-Jul-18 19:41
professionalBillWoodruff19-Jul-18 19:41 
GeneralRe: Placing a control in a vertically scrolled panel Pin
Member 1207484920-Jul-18 6:12
Member 1207484920-Jul-18 6:12 
GeneralRe: Placing a control in a vertically scrolled panel Pin
Gerry Schmitz20-Jul-18 8:55
mveGerry Schmitz20-Jul-18 8:55 
GeneralRe: Placing a control in a vertically scrolled panel Pin
Member 1207484921-Jul-18 5:57
Member 1207484921-Jul-18 5:57 
GeneralRe: Placing a control in a vertically scrolled panel Pin
BillWoodruff22-Jul-18 2:45
professionalBillWoodruff22-Jul-18 2:45 
AnswerRe: Placing a control in a vertically scrolled panel Pin
Luc Pattyn22-Jul-18 10:54
sitebuilderLuc Pattyn22-Jul-18 10:54 
QuestionTCPClient to multiple systems Pin
Gopi Nath18-Jul-18 21:05
Gopi Nath18-Jul-18 21:05 
GeneralRe: TCPClient to multiple systems Pin
Richard MacCutchan18-Jul-18 21:30
mveRichard MacCutchan18-Jul-18 21:30 
GeneralRe: TCPClient not sending messages to multiple systems Pin
Gopi Nath18-Jul-18 22:32
Gopi Nath18-Jul-18 22:32 
Hello Richard,

Thanks for your reply.

First two session in earlier post is the code from sender. Here are the code for the functions mentioned in the thread.

 public void readFromReceiver(object clients)
 {
      ASCIIEncoding encoder = new ASCIIEncoding();
      TcpClient client = (TcpClient)clients;
      NetworkStream clientStream = (client).GetStream();
      byte[] msg_type = new byte[1]; // to read header
      bool flag = false;
      while(!flag)
      {
          try
          {
              // need to get back msg from receiver about status
              int bytesRead = 0;
              bytesRead = clientStream.Read(msg_type, 0, 1);
              int msg = (int)(msg_type[0]);
              string retVal = "";
              if (msg == 3) //  return success
              {
                   retVal = receiveString(clientStream); // return message
              }
          }
          catch(Exception ex)
          {

          }
      }
 }


public void writeToReceiver(object clients)
{
      ASCIIEncoding encoder = new ASCIIEncoding();
      TcpClient client = (TcpClient)clients;
      NetworkStream clientStream = (client).GetStream();

      bool flag = false;
      while(!flag)
      {
           while (nQReceiveProjName.Count > 0) // list of request
           {
               try
               {
                   string cmdToPass = fnGetXMLString(nQReceiveProjName[0]);
                   nQReceiveProjName.RemoveAt(0);
                   sendCommand(clientStream, 5);
                   sendString(clientStream, cmdToPass);
               }
               catch(Exception ex)
               {
               }
           }
       }
  }


In both the cases, client remote end point is holding the ip address of the client in which the first request is received.

Regards,
Gopinath.
GeneralRe: TCPClient not sending messages to multiple systems Pin
Richard MacCutchan18-Jul-18 22:42
mveRichard MacCutchan18-Jul-18 22:42 
GeneralRe: TCPClient not sending messages to multiple systems Pin
Gopi Nath18-Jul-18 22:58
Gopi Nath18-Jul-18 22:58 
GeneralRe: TCPClient not sending messages to multiple systems Pin
Richard MacCutchan19-Jul-18 0:28
mveRichard MacCutchan19-Jul-18 0:28 
GeneralRe: TCPClient not sending messages to multiple systems Pin
Gopi Nath19-Jul-18 2:50
Gopi Nath19-Jul-18 2:50 
QuestionInvalid Resx file. Pin
Member 1207484918-Jul-18 10:33
Member 1207484918-Jul-18 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.