Click here to Skip to main content
15,909,530 members
Home / Discussions / C#
   

C#

 
SuggestionRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen28-Apr-18 1:07
professionalEddy Vluggen28-Apr-18 1:07 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Richard MacCutchan28-Apr-18 1:48
mveRichard MacCutchan28-Apr-18 1:48 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen28-Apr-18 1:51
professionalEddy Vluggen28-Apr-18 1:51 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd28-Apr-18 4:48
Super Lloyd28-Apr-18 4:48 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen28-Apr-18 4:59
professionalEddy Vluggen28-Apr-18 4:59 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd28-Apr-18 5:47
Super Lloyd28-Apr-18 5:47 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
BillWoodruff28-Apr-18 4:55
professionalBillWoodruff28-Apr-18 4:55 
JokeRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen28-Apr-18 5:01
professionalEddy Vluggen28-Apr-18 5:01 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd28-Apr-18 5:45
Super Lloyd28-Apr-18 5:45 
AnswerRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd28-Apr-18 5:38
Super Lloyd28-Apr-18 5:38 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen28-Apr-18 6:14
professionalEddy Vluggen28-Apr-18 6:14 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Super Lloyd28-Apr-18 15:56
Super Lloyd28-Apr-18 15:56 
GeneralRe: UWP / VisualStudio 2017 and StackOverflowException Pin
Eddy Vluggen29-Apr-18 0:29
professionalEddy Vluggen29-Apr-18 0:29 
QuestionSend data to remote server using TCPClient Pin
Carmen_Mundi26-Apr-18 8:07
Carmen_Mundi26-Apr-18 8:07 
Hi,

I need your help in my program. I am trying send data to remote server. I have made connection with remote server using TCP/IP it gives response now. But Now, i want to send command to server. it includes my first name, last name as FNAME, LNAME, EMAIL AND HOST-NAME and I am making this program for registration so after that server will return regstration number. when i try to send data it says, 530 command 'fname' command not accepted in this state. Now i don't understand how to bind all data in one string or what format should i use to send data so that i can send it to remote server. Thank you in advance.

Here is my code:

public  void Connect(String server)
{
Int32 port = 123;
TcpClient client = new TcpClient(server, port);
string FNAME = "reet";
Byte[] data = System.Text.Encoding.ASCII.GetBytes(FNAME);
NetworkStream stream = client.GetStream();
stream.Write(data, 0, data.Length);
Console.WriteLine("Sent: {0}", FNAME);
data = new Byte[256];
String responseData = String.Empty;
Int32 bytes = stream.Read(data, 0, data.Length);
responseData = System.Text.Encoding.ASCII.GetString(data, 0, bytes);
Console.WriteLine("Received: {0}", responseData);
stream.Close();
client.Close();
}

AnswerRe: Send data to remote server using TCPClient Pin
Richard Deeming26-Apr-18 8:21
mveRichard Deeming26-Apr-18 8:21 
GeneralRe: Send data to remote server using TCPClient Pin
Carmen_Mundi26-Apr-18 8:55
Carmen_Mundi26-Apr-18 8:55 
GeneralRe: Send data to remote server using TCPClient Pin
Gerry Schmitz26-Apr-18 10:25
mveGerry Schmitz26-Apr-18 10:25 
QuestionCould not find a part of the path c# in Internet explorer Pin
Member 1204569226-Apr-18 1:29
Member 1204569226-Apr-18 1:29 
AnswerRe: Could not find a part of the path c# in Internet explorer Pin
Richard Deeming26-Apr-18 3:14
mveRichard Deeming26-Apr-18 3:14 
Questiondisabling a textbox at intialization in wpf/C# Pin
jhoga25-Apr-18 4:27
jhoga25-Apr-18 4:27 
AnswerRe: disabling a textbox at intialization in wpf/C# Pin
Richard MacCutchan25-Apr-18 5:04
mveRichard MacCutchan25-Apr-18 5:04 
GeneralRe: disabling a textbox at intialization in wpf/C# Pin
jhoga25-Apr-18 5:15
jhoga25-Apr-18 5:15 
GeneralRe: disabling a textbox at intialization in wpf/C# Pin
jhoga25-Apr-18 5:50
jhoga25-Apr-18 5:50 
QuestionHow to delete row(s) from a database view and two of the linked tables? Pin
Member 1378393524-Apr-18 21:58
Member 1378393524-Apr-18 21:58 
AnswerRe: How to delete row(s) from a database view and two of the linked tables? Pin
Richard Deeming25-Apr-18 1:31
mveRichard Deeming25-Apr-18 1:31 

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.