Questions tagged [stream-socket-client]

99 questions
0
votes
0 answers

UWP - StreamSocket connection error for some connections

We have 2 UWP apps. One app shares data to the other app through StreamSocket. The server app will send data to client app. There will be 30-40 or more devices running the client app and connecting to the server's socket to receive data. When we…
Madhu
  • 1,209
  • 2
  • 22
  • 28
0
votes
0 answers

Type-hinting for a stream resource (stream_socket_client)

I'm looking for a solution to use type hinting on a stream_socket_client() resource stream. Researching this topic, I came across this question and its accepted answer, which somehow implies that what I'm looking for can't be done without moving…
0
votes
0 answers

Why php stream_socket_client is not connecting to port other than port 80?

I have a server hosted on ipaddress:8728. I can access it's service perfectly using my Java Client program. Now I am trying to access this service from my codeigniter web app hosted on the web using stream_socket_client(). But it returns Error…
Shafin Abrar
  • 471
  • 1
  • 5
  • 12
0
votes
1 answer

play audio from TCP/IP server in UWP client on PI3

I'm trying to make an uwp app which will be a client and will run on PI3. The server is a C# Winforms app, that runs on my Windows 10 computer, which I've found here:…
0
votes
1 answer

UWP StreamSocket When backgrounded do I lose the ability to send data?

UWP StreamSocket I was wondering, when I socket.EnableTransferOwnership and then On_Suspended call socket.TransferOwnership(socketId); do I lose the ability to send data? I am writing a UWP application that streams data, and I was hoping in the…
0
votes
3 answers

C# Socket creation error

So im trying to connect to a server using C# socket but I ran into this error: System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Une tentative d’accès à un socket de manière interdite par ses autorisations d’accès a été…
0
votes
0 answers

stream_socket_client timeout between containers when using PhpStorm Run

I have issue with stream_socket_client() function, but only under some circumstances. I'm using docker-compose to build environment containing nginx, php-fpm (7.1.3), and schickling/mailcatcher (and a couple of other not important containers). My…
Jakub Matczak
  • 15,341
  • 5
  • 46
  • 64
0
votes
1 answer

TCP server stops responding after a few requests from client [Windows 10 Universal app, C#, XAML]

I tried to make a little UWP card game to learn how to use TCP, but my server always stops responding to the client after a few connections. The client sends different messages to the server, like "DrawCard;(name of card)". Interestingly, the first…
LinusWP
  • 21
  • 4
0
votes
0 answers

EPP connection timeout on remote server, works on Wamp

I'm trying to connect to an EPP-server with PHP, and it's all working on the Wampserver (PHP 5.5.12) on my pc. I've written a class and connect with this piece of code: if(!$this->socket =…
Thijs
  • 87
  • 10
0
votes
1 answer

How can i define keep alive time on StreamSocketControl.KeepAlive

I'am working with StreamSockets on C++/Cx (UWP) and i don´t now how change de the keep-alive time. I need test both sockets (Client and Server) and after 15 seconds verify if the socket still connected. I tryed define keep-alive time like the code…
0
votes
1 answer

How come I can't read from my socket buffer UWP

I'm trying to write a DLL file to handle sockets for my UWP apps, much like I did for my winforms apps. Problem is I'm just getting into writing UWP apps. My original socket control DLL file would start a receive thread, and every 100…
Kevin
  • 23
  • 5
0
votes
1 answer

UWP C# .net StreamSocket with User Token in HostName

Is there a way to format the HostName for a StreamSocket to include a user token? I get a "Parameter is Incorrect" exceptions when I try to use a URI with the a user Token. I have had success with a MessageWebSocket but I need a StreamSocket because…
James B
  • 3
  • 3
0
votes
1 answer

Apple push notification not working in php

My php script always giving error code 0 for apple push notification. The code which i used is given below $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'passphrase', ''); stream_context_set_option($ctx, 'ssl', 'local_cert',…
Ajith
  • 2,476
  • 2
  • 17
  • 38
0
votes
1 answer

Failed to connect: 0

i got this error in sending notification Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert internal error in…
Jayesh Paunikar
  • 148
  • 1
  • 7
0
votes
0 answers

How does the timeout apply on StreamSocket.readAsync()?

I have created the streamSocket that received the stream of media. I want to read the stream on this socket and also want to apply readTimeout. So that I have applied it using CancellationTokenSource. As per my requirement, if I cant read within…