Connect to slicehost from MediaTemple with a PHP Script (GS Hosting)
Hi, I want use a Redis server with a PHP Site hosted on a MediaTemple GS hosting. MT allows PHP Sockets to contact an external server (slicehost)? ...
Hi, I want use a Redis server with a PHP Site hosted on a MediaTemple GS hosting. MT allows PHP Sockets to contact an external server (slicehost)? ...
From the JavaDoc for setSoTimeout Enable/disable SO_TIMEOUT with the specified timeout, in milliseconds. With this option set to a non-zero timeout, a read() call on the InputStream associated with this Socket will block for only this amount of time. If the timeout expires, a java.net.SocketTimeoutException is raised,...
Sometimes when I call connect() on a third-party proprietary JDBC driver, it never returns and a stack trace shows that it is stuck waiting for a socket read (usually). Is there a generic way to forcibly cancel this operation from another thread? It's a blocking I/O call so Thread.interrupt() won't work, and I can't directly close the so...
I'm developing an application that detects Source-based games running on the LAN. Following up on the specifications provided by Valve, I have it narrowed down to exactly what I want: making a UDP connection on port 27015, sending an A2S_INFO query (0xFFFFFFFF followed by "TSource Engine Query") and parsing the binary reply. This is the...
Glancing at the source code of GNU C Library,I found the inet_ntoa is implementated with static __thread char buffer[18] My question is, since there is a need to use reeentrant inet_ntoa,why do not the author of GNU C Library use malloc to implementate it? thanks. ...
The issue stems from the OAuth authentication portion of my code. I truncated a bunch of it and cut at the part where I get my error. My specific error is "gaierror: (11001, 'getaddrinfo failed'". I really have no idea why. I'm using Leah Culver's OAuth library (http://oauth.googlecode.com/svn/code/python/oauth/). Pretty much following t...
Hello. I have an error 10022 in an application using sockets in C# .NET3.5. In my code, I bind the socket to the local IP adress. When I don"t need it anymore, I just Disconnect it ( reader.socket.Disconnect(true); ) with "true" to be able to re-use it. But when I call the "bind" method again, it crashes with the 10022 error (invalid ...
I get a Flex 3 sandbox error #2048 after connecting to a Socket on a Java (1.5) server. The server code is all mine, i.e. not running under Apache. Flash Player 10.0 r32. The sequence is as follows... 1 Java server starts, listens on port 843 for policy file request and on port 45455 for my other requests. 2 Flex client served by Ap...
Hey everyone, I have a client/server set up. The server (Provider.java) will accept 2 Socket connections. Each client, after they connect, are asked what type of game they would like to play - Tic Tac Toe, Chess, or Connect 5. Depending on their answer, the Socket connections are then stored in the particular game Queue. So, Tic...
I'm trying to receive a variable length stream from a camera with python, but get weird behaviour. This is Python 2.6.4 (r264:75706) on linux(Ubuntu 9.10) The message is supposed to come with a static header followed by the size, and rest of the stream. here is the code from socket import * import array import select HOST = '169.254.0...
Hi, I am aware on how to send files through a socket in perl (server, client)... but I was wondering if anyone could explain or give me a reference on how to send image files through a socket ...
Hey there. Just for starters, I used Twisted and SocketServer with both ForkMixIn, ThreadMixIn and tried the "thread-pool" recepies. However, I wanted to make something particular work in Python. Alittle background. Previously I wrote in C a simple TCP deamon that would bind to a socket and listen on it, then pre-fork X many times and...
What's a good way to sync objects over a socket connection? Here's what I've thought of so far. An object, in its getters and setters, calls an Update method that transfers all of the class's information over the socket connection to other connected clients. To update these changes on the clients, a overloaded method is called that bas...
Hello I have multiple IPs on a NIC. I've programmed a console application to connect to a socket - this connection is made by a specific IP. Is it possible to tell which IP this connection should use, because I have multiple IP's assigned to my server? Hope I made this clear. Thank you! ...
Are there any important change in how SLES 10 implements Tcp sockets vs. SLES 9? I have several apps written in C# (.NET 3.5) that run on Windows XP and Windows Server 2003. They've been running fine for over a year, getting market data from a SLES 9 machine using a socket connection. The machine was upgraded today to SLES 10 and ...
How to do socket programing in Perl? Is there any module for it? I am trying to do socket programming in Perl. I want to know if there are any modules to do this. And another one question: Is it possible to do the multiple servers listen to one port, or multiple client listen to one port through socket programming? ...
I have some code that listens for "announcements" via UDP multicast. I can get the IP address of the sender, but what I really need is the MAC address of the sender (since the IP address can and will change). Is there an easy way to do this in Python? A code snippet is included for reference, but likely unnecessary. sock = socket.sock...
I am writing an application which tests email addresses, for one part of this I need to send a small amount of data to an email address to validate it completely, I am currently using sockets to acomplish this. Whilst I was testing I used a friends SMTP server to test on, and my socket worked fine, but when I tried the same thing on a b...
If I have a Java program that listens to multicast data, how can I tell what the remaining TTL of the incoming datagram is? I know how to set the TTL on the sending multicast socket, but I want to know the remaining TTL of the arriving packet. ...
I have a simple server that waits for a client to connect, reads the incoming stream, and sends a message back. What I would like to do is have every connection handled by a separate thread. This is my first time working with sockets and threads in C#, and most of the examples I have found are really confusing, so any help or simple ex...