sockets

Sending & Receiving "Nudges" via tcp?

Hello, I'm tyring to add a feature to my app that sends a nudge to all users of my program (family members inside the house), and when they receive the nudge the window of my app on their computer shakes for a second... Can somebody please suggest how i'd have to go about this? I've never worked with tcp/ip before.. Is this what I shou...

Cross-thread operation not valid

Hi All, I keep getting the following error when debugging. Cross-thread operation not valid: Control 'richTextBoxReceivedMsg' accessed from a thread other than the thread it was created on. Here's the code that it points to: public void OnDataReceived(IAsyncResult asyn) { try { SocketPacket socket...

Can Silverlight do peer-peer comms without a server or ship a "local server"?

I'm discussing Silverlight (v4 onwards) as a possible platform for a program that will need two instances to communicate directly. As far as I can tell, this is still not possible with the SL sockets assumptions of client-server comms. Assume it is for a highly interactive two-player game and you will have a good idea of the performance...

Adobe Air Binary Sockets

When I Connect To My Socket Over My Intranet, Everything Works Fine: var Sock:Socket=new Socket("192.168.1.100",2222); But When I Set Up Port-Forwarding And Try To Connect Using My Real IP, I Get Error 2031: var Sock:Socket=new Socket("76.18.24.118",2222); What Am I Missing? ...

Can google app engine be used as a socket server?

My webhost has rules against socket servers so I've been looking into GAE. Does anyone know of a socket server that can successfully run on GAE? I'm using it for flash so anything like smartfox would be amazing if it's possible. Thanks. ...

Help eliminate loop in asynchronous receiver due to content-length = 0 in HTTP response

Some web servers return content-length set to zero in the HTTP response headers. I'd like a deterministic and performant solution for receiving all the data in that situation. URL known to exhibit this behavior (additional URLs below): http://www.washingtonpost.com/wp-dyn/content/article/2010/02/12/AR2010021204894.html?hpid=topnews he...

New To Socket Programming, Need Help Understanding How To Connect

I have a C++ Program listening for incoming socket connections on port 2222. I have an Adobe AIR/Flex application that attempts to connect to it, when I click a button. When I Connect To My Socket Over My Intranet, My C++ program hears and accepts the incoming socket connection and Everything Works Fine: var Sock:Socket=new Socket("192...

Communication between java server and matlab client

I'd like to establish a server(Java)/client (Matlab) communication using socket. They can send messages to each other. An example shows how to do this in Java server and Java client, http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html. When I try to rewrite the client part in Matlab, I only can get the first me...

how to capture result from system() in C/C++

Possible Duplicate: How can I run an external program from C and parse its output? Hi, Could someone please tell us how to capture a result when executing system() function ? Actually I wrote a c++ program that displays the machine's IP address, called "ipdisp" and I want when a sever program executes this ipdisp program, t...

Cheapest hosting that comes with smartfox

Can anyone tell me some good cheap webhost servers that come with smartfox server for flash? Thanks. ...

Sock shows inconsistent/impossible results after repeat use

Hey all, I am trying to determine the status of some servers over the course of time. Here is my code: static void Main(string[] args) { byte[] readstream = new byte[100]; byte[] sendstream = Encoding.ASCII.GetBytes("PLAYER_JOINED"); string[] IPs = new string[] { "24.15.169.211", "69.198.255.121", "219.79.24...

iPhone Socket fails after a large number of data transfers

I've got an interesting issue with my socket test application. I've set up a listening socket with an AcceptCallback function. I've connected to the listening socket using : CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, (CFStringRef) self.clientService.hostName, ...

In which thread's context do .NET 3.5 SendAsync's and ReceiveAsync's callbacks execute?

Are SendAsync and ReceiveAsync using IO completion ports? ...

Multiple socket connections

I have multiple devices connected to a TCP/Ip port and i want to read all these devices through sockets in .Net how can i do this before this i had a single device connected and it was working fine but now i have multiple devices can anybody help me in listening multiple socket connection? ...

iphone sdk: playing video from localhost?

Hi guys, I have a server socket (on port 3490) in my app which has a video data - It runs on a different thread. Now I have a mpmovieplayercontroller and would like to read the data from the socket and play it. I'm not sure what url should I pass to it. I've tried file://localhost:3490 http://localhost:3490 but this doesn't work. Pleas...

iphone sdk/mac - problem with sockets

Hi guys My program consists of 2 parts - A server socket running on a different thread, and a client to test the server. I'm 99.9% sure that the server is correctly written (because I have tested it with a client socket), and all it does is returns "hello world" as a response. The server sits on port 3490. Now what I tried to do is t...

Windows socket.Send data isn't received until socket.Close

I'm developing a server application that asynchronously accepts TCP connections (BeginAccept/EndAccept) and data (BeginReceive/EndReceive). The protocol requires an ACK to be sent whenever the EOM character is found before it will send the next message. The accept and receive are working but the sending app is not receiving the ACK (sent...

Cannot bind to address after socket program crashes

If my program crashes before a socket is closed, the next time I run in, I get an error that looks like this; socket.error: [Errno 48] Address already in use Changing the port fixes the problem. Is there any way to avoid this, and why does this happen (when the program exits, shouldn't the socket be garbage collected, and closed)? ...

Android Bluetooth Crashes Application When Remote Device Closes Socket

Hi, I have connected my Android application to a Windows desktop machine via Bluetooth. The application interacts with the machine. At the end of the interaction the application on the desktop closes the socket that was opened between the Android and the desktop application. Right when socket.close() is called on the Windows machine m...

Trouble reading from a socket in go

I'm trying to learn the go language, and I'm writing a simple echo server. I'm having difficulty making it work, though. func listen(server string) { var buf []byte listener, ok := net.Listen("tcp", server) if ok != nil { fmt.Fprintf(os.Stderr, "Could not listen on socket: %s\n", ok.String()) return } ...