So, I've been trying to figure out exactly why this isn't working but I haven't a clue. I've managed to send packets from the iPhone and receive them on my Mac. And according to tcpdump my mac is correctly sending the packets. Additionally, if I run this in the simulator it works fine. This leads me to believe that it's a network problem...
I recently found out that PHP not only has the fsock* functions, but also functions to create a server itself. I decided to experiment a little bit, and came up with this. Now, the problem is that it hangs on accept_connection() (due to the fact that it's waiting for a connection.) I found out that the solution is to use stream_set_block...
I more or less know how to use select() to take a list of sockets, and only return the ones that are ready to read/write something. The project I'm working on now has a class called 'user'. Each 'user' object contains its own socket. What I would like to do is pass a list of users to a select(), and get back a list of only the users w...
i did a windows application using c#.net,
using this application am getting the host name of the LAN systems which are in WORKGROUP except some systems which are having Linux operating System.
can any one pls tell what is the solution ?
...
I've been thinking of developing a web application using HTML and JavaScript for a little while now, but I've hit a wall during my ponderings. I want to be able to connect (long-term, not briefly) to a remote host with this app, one which is unfortunately not the server that the page was requested from.
From what I've read, JavaScript c...
I am facing a wierd socket connection problem in .net windows application.I am using socket from .net to asynchonously communicate to a legacy intersystems cache database.I have a specific timeout value in the application, when the timeout occurs, user is prompted to stay connected to the application. When I say stay connected, socket is...
Hi,
I have developed a trivial example application leveraging the example CFNetwork code listed here,
http://dev.im.ethz.ch/wiki/Socket_communication_on_the_iPhone
and combined it with the SpeakHere example on the apple developer site. Using this I have managed a very, very crude mechanism to stream audio to my server. It works sur...
It seems that since boost 1.40.0 there has been a change to the way that the the async_read_some() call works.
Previously, you could pass in a null_buffer and you would get a callback when there was data to read, but without the framework reading the data into any buffer (because there wasn't one!). This basically allowed you to writ...
greetings, i have the following code regarding asynchronous sockets programming:
public void ServerBeginAceept(ushort ServerPort)
{
try
{
ServerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Any, Serve...
Hi all,
I wrote a small socket listener windows service based on MSDN example.(http://msdn.microsoft.com/en-us/library/fx6588te%28VS.85%29.aspx).
I was able to send the data and receive it only one time, Next time I need to send I have to uninstall and reinstall the service.
public class AsynchronousSocketListener
{
public static M...
Maybe I am asking the wrong questions, because I don't see any sample projects out there. I know Flash developers have done Kiosks and renovated arcade games. "Come on, we see Flash everywhere." Is there a sample project I could be pointed towards, it would be an ass-saver.
Can I prepare my swf files like an image gallery and receive XM...
i would like to encrypt my message when sending to the server from client, how can i do it?
Client
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net.Sockets;
using System.Threading;
nam...
I use a Java Socket object in my client application. I need to know when the line to the server is broken, or if any event caused the socket to be dead.
I see two methods:
catching SocketException when writing in or reading from the socket, considering these exceptions kill the socket
when catching these exceptions, checking the Socke...
i have created the socket program to run in win32 service but the problem i'm facing is that when i start the service it'll start and it is using CPU move its all most 50% of the CPU. i'm using AMD 64bit processor.
if i write a program without socket it wont use CPU as much.
wat should i do to solve this problem.
...
Hi,
I have a c++ client which needs to send a file to a c++ server. I'm splitting the file to chunks of PACKET_SIZE (=1024) bytes and send them over a TCP socket. At the server side I read at most PACKET_SIZE bytes to a buffer. When the client sends files which are less than PACKET_SIZE, the server receives more bytes than sent. Even wh...
I want to learn everything about XML sockets and server-side stuff, but right now I'm just trying to get my stuff to work. Should I set up a socket connection on my computer? I'm trying to use Flash with an old arcade game.
The instructions on Adobe livedocs seems easy. I don't know if I'm approaching this correctly. I need a XML socket...
I am trying to programmatically (Java) open a URL that points to a modem on the network. I am connected to the network and can ping the device as well as fetch the URL within a browser. However, programmatically, I get the following stack trace when trying to open the connection.
java.net.SocketException: Software caused connection abor...
i need some help with socket.listen.
my max_connections is set to 1. but even after a client is connected if another client tries to connect, on the client side it says it has connected although the server does not report anything new.
my app is between one server and one client. and if any other client tries to connect while there is ...
We would like to serve some client requests within our J2EE application server (JBoss 4.2.3). I read that the J2EE spec doesn't allow opening a socket from an enterprise bean. But the spec suggests no alternatives.
Specifically, enterprise beans should not:
listen on, accept connections on, or multicast from a network socket...
We're writing a client and a server to do (what I thought was) pretty simple network communications. Mulitple clients connect to the server which then is supposed to send the data back to all other clients.
The server just sits in a blocking select loop waiting for traffic, and when it comes, sends the data to the other clients. This ...