Questions tagged [stream-socket-client]

99 questions
0
votes
1 answer

Why full text from text file is not printing in the server side?

I am using the below code to transfer one text file from client side to server side. I am writing something inside the text file and the stream is getting placed in front of the texts as I am using "r+". But in the server side the full text (newly…
user3751012
  • 533
  • 1
  • 8
  • 20
0
votes
0 answers

Send bytes stream by socket c++ failure

I'm tying to send with a socket a byte stream but my problem is that the client app cant receive all the stream. I made a loop to send all the stream I call the function 'recv' but there comes a time when this function does not read all the buffer…
0
votes
1 answer

TCP StreamSocket data receiving

I wrote a server-client communication with TCP sockets on Windows and it works properly, but now i'm trying to port the client-side to Windows Phone, but I'm really stuck at data receiving. I'm using StreamSocket and with that I need to know the…
David
  • 73
  • 1
  • 3
  • 10
0
votes
2 answers

stream_socket_enable_crypto alternative or similar solution

I'm running a script on my site that connects to Facebook, It was working fine until my server updated Centos with a buggy version of Openssl. My problem is that until Redhat release a new version I'm stuck with this bug. This is my script how…
chifliiiii
  • 2,231
  • 3
  • 28
  • 37
0
votes
3 answers

Socket arbitrarily connects - or doesnt

I'm working on a university project, in which I have to connect a raspberry pi to an Android smartphone to control 2 motors. We are new to socket programming, so we started out with an example we found on wikibooks and tried to modify in to our…
Sami
  • 129
  • 2
  • 15
0
votes
1 answer

Using StreamSocket object in different pages

This may seem like a trite question as I am new to Object Oriented Programming, but I am working on a Windows Phone Application and I am curious about the _socket object within the program. The code that I am using below works and I am sending this…
JoshRyan
  • 23
  • 1
  • 6
0
votes
1 answer

LINK 2019 Unresolved external symbol "CaptureUiThreadContext" when adding .then() to async cpp code

Hey I have a very frustrating bug. I have a c++ windows phone 8 app and I am trying to use the StreamSocket. Before I explain, here is the code that causes the error: using namespace Windows::Networking; using namespace…
Skn3
  • 65
  • 4
0
votes
1 answer

WinRT StreamSocket - existing connection forcibly closed

When attempting to download data from a server using StreamSocket, I encounter an error: An existing connection was forcibly closed I use a StreamReader to read data from InputStream.AsStreamForRead(). Strangely, this works fine for the first…
c0D3l0g1c
  • 3,020
  • 5
  • 33
  • 71
0
votes
1 answer

How to get the last message from a TCP server with stream?

TcpClient client = new TcpClient(); client.Connect(IPAddress.Parse(HOST_IP), HOST_PORT); Stream stream = client.GetStream(); var reader = new StreamReader(stream); var writer = new StreamWriter(stream); writer.AutoFlush = true; while (true) { …
NamPNQ
  • 379
  • 4
  • 13
1 2 3 4 5 6
7