Questions tagged [stream-socket-client]
99 questions
2
votes
1 answer
Long delay between stream_socket_server and stream_socket_client on the same PC
When I run the two files below through the command line, (first start socket_server, then socket_client) there is a long delay (~60s) before any output is sent to socket_client by the server. Is there a way to reduce this gap, or any hints as to…

Tom Kilney
- 39
- 2
- 8
2
votes
1 answer
PHP SSL stream_socket_client won't use created $context
I'm totally disappointed. I am connecting to a ssl servers, and direct connections working well, but when I am trying to add stream context to use proxy or socks5, socket won't use it and connecting pretty well directly to these ssl:// server…

Randy Vogel
- 375
- 1
- 5
- 16
2
votes
0 answers
stream_socket_client fails from browser but works for command line
I am working on iOS based push notifications. My code works perfectly fine when using say sendpush.php script and run it as $php sendpush.php from command line. But when I run same script from browser or say phone, it doesn't send push notification.…

Puneet Jain
- 105
- 8
2
votes
0 answers
Winrt 8 StreamSocket error SoftwareCausedConnectionAbort
I'm trying to connect with my FTP server through StreamSockets but for some reason it keeps crashing and giving me this error while reading:
WinRT information: An established connection was aborted by the software in your host machine.
I'm using…

just_trying_stuff
- 366
- 1
- 3
- 12
2
votes
1 answer
php stream_socket_client timeout does not work as expected
i have written a class which checks ssl vertificates via php stream_socket_client.
however timeout does not work for some sites. the scripts sometimes wait up to 60 seconds for response of some hosts (seems to be a php configuration limit).
this…

Martin Abraham
- 752
- 7
- 24
1
vote
1 answer
HTTP CONNECT & stream_socket_client
what way would be best to send a HTTP CONNECT request via php's stream_socket_client?
or would it be irrelivant?

user1187372
- 193
- 1
- 9
1
vote
2 answers
Java Socket Client pattern
My java application has to send messages(multithreaded) to a socket server. The application can send around 100-200 messages a second.
I want to know which is a better approach to do this ?
Open a single client socket and send the message from all…

Dunxton
- 408
- 1
- 8
- 21
1
vote
0 answers
Unable to connect socket.io server | iOS client
I'm not able to connect the ios client app to the server.
Android is working fine.
Following socket client version i'm using.
We tried the following…

Urvish Patel
- 175
- 1
- 11
1
vote
0 answers
Timestamp for Ethernet frames
I am receiving CAN and Ethernet messages I would like to compare them according to timestamp.
i am using socket CAN and "ioctl(s, SIOCGSTAMP, &tv);" function to get timestamp for can frames and it works great;where s is the socket of can
but when…

Haithem Mostafa
- 21
- 1
- 2
1
vote
1 answer
C++ socket client to python server no connection created
I am trying to create C++ socket client for python server.
Because I am new to C++ before creating the C++ client I checked if the python socket server with python client. After creating and running the C++ client the server do not get any…

fusu
- 324
- 2
- 14
1
vote
1 answer
Error while connecting APNS Server - SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
I am getting the following errors while connecting the APNS and sending a push notification.
Errors:
Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL…

Varun P V
- 1,092
- 1
- 12
- 30
1
vote
1 answer
How to handle disconnection / reconnection with windows StreamSocket
What is the correct way to handle a disconnection and re-connection event with the windows StreamSocket class (TCP)?
I have an issue where calling "Invalid Operation, method was called at an unexpected time" when calling async_connect after a…

aCuria
- 6,935
- 14
- 53
- 89
1
vote
1 answer
How can I receive data from server by streamsocket continuously?
I am a WPF programmer and now is a beginner of UWP.
I need to write a new program to connect a remote machine now. And the machine will send data to the client at times.
I wanna that whenever the machine sends the data, the client will get it at…

102425074
- 781
- 1
- 7
- 23
1
vote
0 answers
UWP StreamSocket connectAsync with other NetworkINterface (Windows to VM Ware Network)
I would like communicate with a C# UWP Client socket on Windows (host) to a Java server (on Debian VM guest).
On windows, I use local network. My adress class is 192.168.36.1. My computer local IP is 192.168.36.119. I use Ethernet Interface.
On…

DevLoots
- 747
- 1
- 6
- 21
1
vote
1 answer
PHP stream_socket_client not working in chrooted environment
I try to use stream_socket_client() to open a ssh connection, but getting:
Could not open socket: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate…

koseduhemak
- 523
- 2
- 4
- 19