Questions tagged [stream-socket-client]

99 questions
1
vote
1 answer

DataReader Hololens

I'm trying to create a udp client/server on Hololens. My idea behind the project is to have a communication between an iOS app and the Hololens. Here is my code : using System; using System.Collections; using System.Collections.Generic; using…
Silvering
  • 756
  • 1
  • 6
  • 33
1
vote
1 answer

Send data from UWP client applications to server crash with error System.Runtime.InteropServices.COMException (0x8007274D)

I want to create a server so that HoloLens, UWP app, could connect to it and send data to it. So to create the server, I created a Console Application in Visual Studio and followed the example here And from the client side, UWP application, I…
1
vote
0 answers

UWP StreamSocket App closes after connection

I have taken the microsoft example code and am trying to test it. In this code, the server starts, receives a connection and then does nothing else. After the connection, the program will just close on it's own with no error. Can anyone shed some…
Brizzler
  • 79
  • 9
1
vote
0 answers

Windows store app: certificate management and streamsocket connect with TLS V1.2

We want to use the "Microsoft Platform Crypto Provider Key Storage Provider” APIs on Surface Pro devices and Windows Mobile Phone devices for Windows 8 and 10. The operations we need to support are provisioning new keys to the KSP (key storage…
1
vote
0 answers

How to update stream_socket_client ssl version 3

I can see we can change ssl version to ssl3 in curl but how to do this in "stream_socket_client"
Manoj
  • 11
  • 1
1
vote
1 answer

Reading stream_socket_client by bytes using fread()

I have a weird problem with reading stream_socket_client by bytes, I send response from JAVA, it looks like this: this.writeInt(output,target.getServiceId().getBytes().length); output.write(target.getServiceId().getBytes(); …
rdabrowski
  • 189
  • 1
  • 6
  • 16
1
vote
3 answers

stream_socket_client() fails when using in CRON job

I have a script that runs fine in the browser, however fails when run through CRON. Specifically, the script is using stream_socket_client() to create a secure socket, however despite running fine when I run through the browser, the CRON side fails…
mootymoots
  • 4,545
  • 9
  • 46
  • 74
1
vote
0 answers

PHP - Getting more info on failed stream_socket_accept() requests

I’ve got a PHP communications server running using stream_socket_server() and stream_socket_accept(), a fairly complicated thing which uses SSL connections and certificates to be certain that the remote side is authorized to connect to the server. …
zgwortz
  • 901
  • 6
  • 6
1
vote
0 answers

Windows 10 IOT got BSOD when using StreamSocket as client

I have an app running on Raspi 3 windows 10 IOT Build 14279 that Connect, Send, CloseSocket right after when I push a button. app runs OK for 5 minutes after that a BSOD appear with a message "IRQL_NOT_LESS_OR_EQUAL (NETIO.SYS)". Sorry for my…
1
vote
1 answer

Using proxy without cURL

I have tried to use proxy in php using both the methods. I have socks5 proxies. Which works great when I use cURL method. But when I try to use stream_context_set_default it doesn't work at all. Is there any way to use proxies ? For example : this…
John MD
  • 11
  • 3
1
vote
2 answers

Read method crashes after receiving a few packets

My application sends the users credentials to the server, if they are correct the server send a packet telling the client their credentials are wrong or right. After a couple of dummy tests, my client crashed due to this line of code; …
Moynul
  • 635
  • 1
  • 8
  • 30
1
vote
2 answers

many io stream from one socket

Can I parallelly connect many independent I/O streams of server's socket and client's socket such that each pair of I/O streams could send different data at the same time ? How could I achieve such a connection in java without increasing number of…
Himanshu Singh
  • 228
  • 1
  • 3
  • 11
1
vote
0 answers

How to run unit test cases in Socket-Client program using C language in eclipse-cdt ubuntu 14.0?

I made simple StringReverse C project in eclipse-cdt (ubuntu 14.0) and made to .so (shared library). I made test cases for StringReverse C project in eclipse-cdt. Tests runs successfully. But, these C project and test cases I wants to run in…
Ravi
  • 13
  • 1
  • 7
1
vote
0 answers

How to set SNI on StreamSocket on Windows Phone 8 SDK

Is it possible to set Server Name Indication (SNI) in ConnectAsync on stream socket?
Anish Singh
  • 881
  • 1
  • 13
  • 33
1
vote
0 answers

How do I provide a client certificate when connecting to a server in Windows 8.1 with StreamSocket?

When looking at the StreamSocket API in Windows 8.1, it doesn't appear that there's any way for a StreamSocket to provide a client certificate for the server to validate, in either UpgradeToSslAsync or ConnectAsync. Is there anyway to do this at all…
Alex Marshall
  • 10,162
  • 15
  • 72
  • 117