LS,
I was planning on writing a wrapper around the System.Net.Sockets.Socket class, because I don't feel like using the SSLStream class because of the negative impact on performance.
I found an article which does exactly what I want, but on Windows Mobile. (Link: Enable SSL for managed socket on windows mobile)
[Edit]
Apparently, the...
Hello,
I have a problem
I created this client connects to a server and then want to send and receive strings (this is not implemented yet).
When creating the connection I have a problem since the creation of the connection does not do "CFRunLoopRun ();"( tested by degbug).
Someone any idea?
Thank you.
- (void) acceptConnection:(int)fd {...
I had another question about this issue, but I didn't ask properly, so here I go again!
I'm sending a file by sending it in chunks. Right now, I'm playing around with different numbers for the size of that chunk, to see what size is the most efficient.
When testing on the localhost, any chunk size seems to work fine. But when I tested ...
I am new to multithreading & socket programming in Java. I would like to know what is the best way to implement 2 threads - one for receiving a socket and one for sending a socket. If what I am trying to do sounds absurd, pls let me know why! The code is largely inspired from Sun's tutorials online.I want to use Multicast sockets so that...
I have a TCP socket client receiving messages (data) from a server.
messages are of the type length (2 bytes) + data (length bytes), delimited by STX & ETX characters.
I'm using a bufferedReader to retrieve the two first bytes, decode the length, then read again from the same bufferedReader the appropriate length and put the result in a...
I am very tempted to use long wait http or periodic polling by the client to set up pseudo-sockets on the browser side, for an application that would be used publicly.
But then on the 2nd thought, I am thinking HTML 5 is here.
But on the 3rd thought, what is the percentage of browsers out there that remain non-HTML5 within 12 months, 2...
Hi.
I am writting Silverlight client-server application.
Server part is WinForm application an client part is Silverlight.
I use TCP connction. I use sockets for sending and receiving information. But now I need to send a file, size of which may be greater then 1 Mb, so I can't use socets to send that file as bite stream. I wont to send ...
I am trying to send a SOAP message to a service using php.
I want to do it with fsockopen, here's is the code :
<?php
$fp = @fsockopen("ssl://xmlpropp.worldspan.com", 443, $errno, $errstr);
if (!is_resource($fp)) {
die('fsockopen call failed with error number ' . $errno . '.' . $errstr);
}
$soap_out = "POST /xmlts HTTP/1.1\r\n...
Hi I need a utility to close server socket handles open by the process, on windows. I cannot use tcpview as it does not close the server socket (ESTABLISHED state). Process explorer comes close with its handle list and "close handle" option, but it only gives the handle path (like \Device\Afd) and if application has open many such socket...
Hi all,
I'd like to send a specific UDP broadcast packet.. unfortunatly i need to send the udp packet from a very specific port for all packet I send.
Let say I broadcast via UDP "BLABLAH", the server will only answer if my incoming packet source port was 1444, if not the packet is discarded.
My broadcast socket setup look like this ...
I have seen several questions regarding SocketException when using Android, but none of them cover the BindException that I get even with the INTERNET permission specified in my manifest.
Here is part of my manifest:
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="and...
Hello, I am somewhat new to iPhone dev and I have been getting unrecognized selector when I call CFSocketConnectToAddress in this code. I think it might be something basic that I am doing wrong. Any idea?
this is the complete error I get.
NSInvalidArgumentException
unrecognized selector sent to instance 0x3922170
0x3922170 is the ca...
I know Twisted can do this well but what about just plain socket?
How'd you tell if you randomly lost your connection in socket? Like, If my internet was to go out of a second and come back on.
...
I am trying to reconnect to a socket that I have disconnected from but it won't allow it for some reason even though I called the Disconnect method with the argument "reuseSocket" set to true.
_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
_socket.Connect(ipAddress, port);
//...receive data
_socke...
There are 4 months since I stopped developing my Silverlight Multiplayer Chess game.
The problem was a bug wich I couldn't reproduce. I am very sad because this was a test and many Silverlight multiplayer games will come if this will be a success. There are no examples on the internet about how to do stuff like that, not to mention th...
I was recently approached by my management with an interesting problem - where I am pretty sure I am telling my bosses the correct information but I really want to make sure I am telling them the correct stuff.
I am being asked to develop some software that has this function:
An application at one location is constantly processing rea...
I'm looking for the underlying API calls that netstat -b is using to determine the owning processes for each socket. Any ideas?
...
Hi,
I am a beginner in programming for iphone.I want to develop traceroute and telnet app for iphone.Can you please provide me with some sample codes or pointers to start with.
Thanks,
Vinod.
...
That is for working with flash sockets (for irc clients).
...
Hi to all! I have an interesting (to me) problem... There are two threads, one for capturing data from std input and sending it through socket to server, and another one which receives data from blocking socket. So, when there's no reply from server, recv() call waits indefenitely, right? But instead of blocking only its calling thread, ...