Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: LinkButton isnt recognized properly Pin
Richard Deeming19-Apr-16 6:06
mveRichard Deeming19-Apr-16 6:06 
GeneralRe: LinkButton isnt recognized properly Pin
Collectoons19-Apr-16 6:08
Collectoons19-Apr-16 6:08 
QuestionError Starting Windows Service Pin
Member 1098552419-Apr-16 2:52
Member 1098552419-Apr-16 2:52 
AnswerRe: Error Starting Windows Service Pin
Eddy Vluggen19-Apr-16 2:57
professionalEddy Vluggen19-Apr-16 2:57 
QuestionSocket Example UWP Pin
Miwin Solutions19-Apr-16 1:13
Miwin Solutions19-Apr-16 1:13 
AnswerRe: Socket Example UWP Pin
Jochen Arndt19-Apr-16 2:18
professionalJochen Arndt19-Apr-16 2:18 
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 2:16
Miwin Solutions20-Apr-16 2:16 
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 2:58
professionalJochen Arndt20-Apr-16 2:58 
This is difficult to answer with the available information.

You did not show the code that is sending to the server.

So I can just guess that you are doing that before creating the input stream and the reader. Then the data from the server may have been received already and are discarded by calling Flush().

I can only suggest to try it this way:
C#
Stream streamIn = socket.InputStream.AsStreamForRead();
// Remove this (should be not necessary)
// streamIn.Flush();
StreamReader reader = new StreamReader(streamIn);

// Send data to the server here after the input stream has been created

while (true)
{
    //client receive
    string response = await reader.ReadLineAsync();
}


If this does not help you should debug the client code.
GeneralRe: Socket Example UWP Pin
Miwin Solutions20-Apr-16 3:52
Miwin Solutions20-Apr-16 3:52 
GeneralRe: Socket Example UWP Pin
Jochen Arndt20-Apr-16 3:59
professionalJochen Arndt20-Apr-16 3:59 
QuestionHow to login to a website programmatically using C#.? Pin
mbatra3118-Apr-16 23:58
mbatra3118-Apr-16 23:58 
AnswerRe: How to login to a website programmatically using C#.? Pin
Sascha Lefèvre19-Apr-16 0:06
professionalSascha Lefèvre19-Apr-16 0:06 
AnswerRe: How to login to a website programmatically using C#.? Pin
ChizI19-Apr-16 7:03
ChizI19-Apr-16 7:03 
QuestionVisual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 12:04
clapclap18-Apr-16 12:04 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 12:20
mveDave Kreskowiak18-Apr-16 12:20 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
clapclap18-Apr-16 12:22
clapclap18-Apr-16 12:22 
GeneralRe: Visual Studio skips compiling files based on date/time Pin
Dave Kreskowiak18-Apr-16 12:29
mveDave Kreskowiak18-Apr-16 12:29 
AnswerRe: Visual Studio skips compiling files based on date/time Pin
Philippe Mori18-Apr-16 12:28
Philippe Mori18-Apr-16 12:28 
QuestionI can not log in in my own C# Project in my Compiuter Pin
Member 1228884018-Apr-16 5:20
Member 1228884018-Apr-16 5:20 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Simon_Whale18-Apr-16 5:32
Simon_Whale18-Apr-16 5:32 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Sascha Lefèvre18-Apr-16 5:33
professionalSascha Lefèvre18-Apr-16 5:33 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
OriginalGriff18-Apr-16 5:37
mveOriginalGriff18-Apr-16 5:37 
AnswerRe: I can not log in in my own C# Project in my Compiuter Pin
Patrice T18-Apr-16 5:41
mvePatrice T18-Apr-16 5:41 
QuestionRe: I can not log in in my own C# Project in my Compiuter Pin
Eddy Vluggen18-Apr-16 12:25
professionalEddy Vluggen18-Apr-16 12:25 
Questiondoubt Pin
Member 1243170118-Apr-16 2:54
Member 1243170118-Apr-16 2:54 

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.