Questions tagged [stream-socket-client]

99 questions
0
votes
1 answer

How to use Mozilla CA Certificate as ssl client certificate

My php code need to connect to a remote ssl server using stream_socket_client(), The ssl server owner provide me this document: All clients must use a publicly verifiable certificate. We support a wide range of public certificate authorities. All…
trungnnh
  • 263
  • 2
  • 7
0
votes
1 answer

StreamSocket C# Client is only able to write one time to server

I have been trying to setup a client-server application using StreamSockets in c#. I am able to initially connect to the server (ConnectAsync) and following to write and read the stream. If the client sends another stream to the server using the…
0
votes
1 answer

Send object over a TCP connection

I've started windows mobile programming today and I have successfully connected to my server. The application I am making on Visual Studio is not a universal application, but a Windows Mobile Application. The API DataWriter is used to write data to…
Moynul
  • 635
  • 1
  • 8
  • 30
0
votes
1 answer

Create StreamSocket to send TCP messages to different IP Address and issue on dispose the StreamSocket

I am developing Universal Apps for Windows 10 which requires TCP communications for which I have created a Universal Class Library, with a class called TCPCom which implements IDisposable interface. The TCPCom has a send method which has following…
Anna Jhaveri
  • 93
  • 2
  • 9
0
votes
1 answer

C# XMPP with StremSocket hangs after resource binding

I need to build a XMPP Client in C# for a UWP app. I know there are some libraries .NET, but it seems that do not work very well (the ones free), so I decided to implement it on my own. The server side is an ejabberd service. I use a StreamSocket in…
blow
  • 12,811
  • 24
  • 75
  • 112
0
votes
1 answer

Control Channel Trigger on Windows 8 App

I've come to a point on a Windows 8 App that (according to my research) needs a Control Channel Trigger to establish a StreamSocket connection and get the response when the app is not active. I've been reading This and This to try to understand…
0
votes
0 answers

WinRt StreamSocket.ConnectAsync Exception

I'm writing a WIntRt application in C# and I use StreamSocket. The fragment of code I have problem with looks like this try { await StreamerConnection.socket.ConnectAsync(new Host("192.168.10.14", "8777"); } catch(Exception…
xcoder37
  • 499
  • 6
  • 21
0
votes
1 answer

C# Windows app read data from streamsocket not comprehensible

I'm trying to realize a simple StreamSocket-communication between server and client. The server is written in Java and the client in C#. To send a message (string) from the client to the server works fine. But the other way around I have some…
DJTrust
  • 23
  • 6
0
votes
1 answer

How to send FTP command over StreamSocket (winRT)

I'm triyng to connect to my filezilla ftp server from a windows phone 8.1. I have this code for now : StreamSocket s = new StreamSocket(); await s.ConnectAsync(new HostName("192.168.254.53"), "21"); DataWriter writer = new…
tufekoi
  • 929
  • 2
  • 14
  • 33
0
votes
1 answer

use stream_socket_client to retrieve 2 remote files at the same time

I have a script in PHP which retrieves two very similar files and performs some tasks on the data then outputs a result. I'm currently using curl and getting one, processing it, then getting the other and processing it. I want to switch to…
Hintswen
  • 3,987
  • 12
  • 40
  • 45
0
votes
0 answers

(Java) Simple File Transfer (Client-Server) with Socket

I'm working in an simple File Transfer program but I really get a point where is impossible to continue, cause the compiler give the following error: Cliente_FTP.java:60: error: cannot find symbol …
0
votes
1 answer

Can't dispose StreamSocket

I've made a small class that connects to and IRC server, and now I'm trying to dispose of the socket. Whenever I do so, i'm getting a The I/O operation has been aborted because of either a thread exit or an application request It's maybe worth…
Jazerix
  • 4,729
  • 10
  • 39
  • 71
0
votes
3 answers

PHP can't connect to localhost XMPP server on port 5222

I've set up an ejabberd install locally on my Windows box, where I also have Apache, PHP and MySQL. I've also confirmed that it works great using Digsby, and have kicked the tires a bit by creating some users, sending some messages, etc. All…
Ben Werdmuller
  • 185
  • 2
  • 9
0
votes
1 answer

How to broadcast a message using StreamSocket

I followed a tutorial to create WindowsPhone devices connect via Stream Socket. Sending message to eachother worked pretty well. But I don't know how to broadcast a message. Can someone show me how? private StreamSocket _socket = new…
user3688221
  • 87
  • 1
  • 1
  • 7
0
votes
1 answer

Connection error 10060 while connect to apple push service

im using windows server and run php 5 i got this error Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (A connection attempt failed because the connected party did not…
yaron
  • 41
  • 5