Questions tagged [stream-socket-client]
99 questions
1
vote
1 answer
Connect a Metro app to a Python SSL server with a self-signed certificate
How can I use a StreamSocket in a Windows 8 Metro app to connect to a Python+OpenSSL-based server using a self-signed certificate in the server ? I've tried adding the server's public key to the various trusted stores on the Windows Desktop to no…

Alex Marshall
- 10,162
- 15
- 72
- 117
1
vote
0 answers
PHP stream_socket_client ignoring timeout
I'm using zend_mail from zend-framework2 in my project to send some amount of emails in a loop, but sometimes it takes more than usual to send an email.
After doing some research, i found that the delay occurs on the stream_socket_client function.
I…

shad
- 341
- 1
- 2
- 8
1
vote
0 answers
How do i save stream socket connections and resuse them in Windows store apps?
My app lets users connect to each other to share messages and such using streamsockets.
The app has a streamSocket Listener that, when the onConnectionReceived is called, it returns the socket that is connecting and sending a request to the…

user1775297
- 87
- 11
1
vote
1 answer
C#, Metro, Stream Socket, SSL Untrusted Host, Squid
I need your help one more time.
I can't get how to successfully establish a StreamSocket connection from Metro application to untrusted root certificate host.
I'm connecting like this:
await socket.ConnectAsync(new…

Serge Velikan
- 1,131
- 15
- 31
1
vote
1 answer
multiple clients streamsocketlistener
For a project I have to make an application that runs in a network. In this network there are 2 or more clients(streamsockets) connected to 1 server(streamsocketlistener). Is there a way to tell the server to receive data from one client and then…

maarten1055
- 43
- 4
1
vote
1 answer
PHP stream socket client - invalid IP address
My server has multiple IP address, and I use this code to bind IP to stream socket client. It works fine. But some time I get this warning:
stream_socket_client(): Invalid IP Address:
I'm using PHP 5.3.3 and my server is running CentOS 5.x
…

Quan
- 39
- 1
- 6
1
vote
1 answer
Including user and password for php stream socket proxy
I have a php script that connects to an smtp server and I pass the email address, password, and all the other stuff. (i'm using Zend)
I want to go through a proxy but my proxy server requires authentication. I've looked through the php documentation…

Andrew Park
- 1,489
- 1
- 17
- 26
1
vote
0 answers
PHP socket issue - Memory Leak

Jun
- 41
- 3
- 10
0
votes
1 answer
stream_socket_client, timeout and control
I have this PHP code:
$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);
That '60' is a timeout for the connection.
Right after that line, I have:
if (!$fp) {...}
Now: will this…
user1094081
0
votes
2 answers
c++ multi client/server chat
I am hitting rock bottom, thinking about a solution for a problem I am having with my chat server and client.
What is supposed to do, client asks for a username, then for a connection request to the user with answer [Y/N].
When hitting yes, client…
user772164
0
votes
1 answer
Xtb broker socket connection
Hello I'm trying to connect to websocket connection shared by xtb stock broker.
The documentation is here: http://developers.xstore.pro/documentation/2.5.0
There is mentioned:…

Krzysztof Michalski
- 791
- 1
- 9
- 25
0
votes
0 answers
stream_socket_client: truncates the data tape
I am using stream_socket_client to connect to the socket server. Using the fwrite() method, I write data there. Here is a sample code:
$localsocket = 'tcp://' . Yii::$app->params['socket.server'] . ':4002';
$message = [
'message' => $action,
…

Diefair
- 153
- 1
- 10
0
votes
2 answers
How can I get Windows.Storage.Streams.IInputStream inputStream length?
I use HoloLens 2 as a client and my unity server on my PC. (More discussion about this: How can I read byte array coming from server in UWP app?) I lost my debug await reader1.LoadAsync(256);. I tried everything to get my stream data but I couldn't.…

Yunus Emre
- 61
- 10
0
votes
1 answer
stream_socket_client and server not working
I'm trying to create a connection between the client and the server (with TLS 1.2).
Client.php
$stream_context = stream_context_create(['ssl' => [
'local_cert' => "path/to/cer.pem",
'verify_peer' => true,
…

Tester
- 49
- 7
0
votes
0 answers
PHPMailer 6.2 stream_socket_client
I switched over to using PHPMailer 6.2 (which is the master version, and most recent version).
I am using Apache 2.4 on a Windows Server 2019. The version of PHP I am using is 7.4.12.
Following this tutorial:…

John Beasley
- 2,577
- 9
- 43
- 89