sockets

Google simultaneous connections

Does Google cap the number of connections a server can make to Google IMAP servers? I'm looking for overall limit rather than per account limit (which is 10 connections by the way). Does anyone have an experience with that? ...

How does the Six Apart Update Stream work?

Six Apart has this neat service that streams out LiveJournal, Vox, etc. updates: http://www.sixapart.com/labs/update/developers/ It also has the interesting ability to know if the client has missed parts of the feed. I've tinkered with writing a similar service for myself, and while I've gotten it to stream okay, I'm ashamed to admit ...

help with python forking child server for doing ajax push, long polling

Alright, I only know some basic python but if I can get help with this then I am considering making it open source. What I am trying to do: - (Done) Ajax send for init content - Python server recv command "init" to send most recent content - (Done) Ajax recv content and then immediately calls back to python server - Python server recv c...

Socket server ip/port problem

I'm trying to set up a socket server on a ubuntu machine. I've been setting up the same server-script on my own machine where it works perfectly. In my router i forwarded port 10007 to the right machine and bind the ip to my local ip (192.168...:10007). Now i need to set it up on a dedicated server though and that is where the problems ...

TcpListener.AcceptTcpClient and Firewall

I have a TcpListener object that is operating behind a firewall on port 4000. Obviously, in order for outside clients to connect to the TcpListener, port 4000 needs to be opened in the firewall; otherwise, no outside connection request would get through. My question has to do with what happens when I accept the connection request like ...

How to make a winsock listen on a particular port?

This must be really obvious, but how do I make a winsock listen to a specific port (recieve data?) I cannot find a method that lets me do so! Sorry that this is probably so obvious. I am trying to make a chat application, which is obviously running in a server/client setup. ...

What is the simplest way to setup a server to read data from incoming socket connections?

What is the simplest way (preferably without using third party frameworks) in objective c, to setup a simple server that listens for socket connections, and reads data from the clients on a line by line basis. ie Ideally you would just need to create an instance of a "server" object, that would pass "client" objects back to which receiv...

C# Asyn. Socket Programming

Is it possible to unit test the Asyn. socket programming (using c#)? Provide some sample unit test code. ...

Socket communication?

What are the preferred platforms to implement TCP socket communication? I'm interested in: scripting languages (eg Swocket for Python) and runtimes (eg .NET / Java). ...

talking between python tcp server and a c++ client

I am having an issue trying to communicate between a python TCP server and a c++ TCP client. After the first call, which works fine, the subsequent calls cause issues. As far as WinSock is concerned, the send() function worked properly, it returns the proper length and WSAGetLastError() does not return anything of significance. Howeve...

Are non blocking IOs still an issue with server side Java?

The Java NIO Socket Framework supposedly hides the dirty details of non-blocking IO from developers, allowing them to build highly scalable applications, which can handle over 10000 incoming and outgoing sockets using only one thread. Are non blocking IOs still a pain with the typical version of Java 2 SE/EE? Is this framework still ne...

Actionscript 3.0 network programming with C#

Hey guys, I was looking into network programming with AS3 and I noticed that all the examples were using Java to code a server. I tried using C# to make one but it wasn't working as expected. I was wondering, does anyone have a really simple example of AS3 networking using a C# server? Thanks. ...

Can I run a Python script as a service?

Is it possible to run a Python script as a background service on a webserver? I want to do this for socket communication. ...

What is WebORB for PHP?

What is the WebORB for PHP runtime environment? It supposedly connects Flex, Flash, AJAX and Silverlight clients with PHP classes and data from relational databases. It seems to support AMF (Flash<>PHP data exchange), is the entire product built around this? Does it use sockets? or is it just an AMF service? Does it run as a backgroun...

conditional beginReceive

I am writing a client program that uses Sockets. I would like the client to receive asyncronously UNLESS it is expecting a response, in which case I would like to receive syncronously. My current problem is that because I have to make a call to socket.BeginReceive which waits until there's data on the buffer, the async call always happ...

How do scripting languages use sockets?

Python, Perl and PHP, all support TCP stream sockets. But exactly how do I use sockets in a script file that is run by a webserver (eg Apache), assuming I only have FTP access and not root access to the machine? When a client connects to a specific port, how does the script file get invoked? Does the script stay "running" for the durat...

Appending data to a null character in character array to send data through socket

Hi Forum, I am a newbie programmer.I have a problem as goes below, void SockSend() { char *sendbuf; int sendsize; /* send data size(variable size)*/ int iPos = 0, iTotSize; char hdr; char *data = "ABCDEFGHIJKLMNO"; /* its just example, data can be any thing */ sendsize = strlen(data); hdr = '\0'; /* header charac...

Server Side Language for Scalable TCP-socket application

Which amongst these would be well suited for a scalable server side TCP socket based Web application. Java, PHP, Perl, Python, Ruby. You could base yours answers Primarily on: Rapid Application Development. Available frameworks(If required) for getting the job done. Secondarily on: Performance Support In addition you could a...

What are the ways to run a server side script forever?

I need to run a server side script like Python "forever" (or as long as possible without loosing state), so they can keep sockets open and asynchronously react to events like data received. For example if I use Twisted for socket communication. How would I manage something like this? Am I confused? or are there are better ways to impl...

Can I create a socket application on a hosting service?

I need to develop a server side application that opens sockets and manages communication with multiple clients. Previous answers have told me this is possible using a single script file, which loops forever. Is this possible using only a PHP/Perl/Python hosting service? or would I need a VPS or shell access? Any help is appreciated si...