I have a socket app that needs to have support for SOCKS 4 and 5 proxy connections, since my users may be behind firewalls. I am using WPF and C# 3.5 SP1. I see no options in the default Socket class for proxys, do I have to roll my own?
I'd prefer not to use 3rd party libs if possible - how difficult is it to enable proxy support with...
I want to build a question/answer game with rooms and chat. My question is: Is it possible to make it with just php and http requests? From you're experience, how many visitors will it hold. I know it's better with socket server but i only have a shared host rith now.
...
I need to have a business logic running inside Glassfish 2.1 Appserver, which listens for inbound TCP connections and serves them. I feel that this kind of task is not really fit inside the appserver - maybe I should publish web service interfaces, etc, but I can't, at least not directly for the client.
The client will connect to my app...
hello,
i am getting an excepetion when i try to read an object from an ObjectInputStream via network like this:
Socket socket = new Socket("localhost", 4444);
ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
while ((Object o = ois.readObject()) != null) {
}
Here is the exception I get:
java.io.EOFException
...
Is it possible to extract type of object or class name from message received on a udp socket in python using metaclasses/reflection ?
The scenario is like this:
Receive udp buffer on a socket.
The UDP buffer is a serialized binary string(a message). But the type of message is not known at this time. So can't de-serialize into appropri...
hello i have a basic client-server system running using java sockets.
my problem is, that an object that i send from the client to the server does not contain the correct data after it has been sent once.
the first time i send it, it arrives with the correct values, but when i send it another time with different values, it still arrive...
First let me explain the data flow I need
Client connects and registers with server
Server sends initialization JSON to client
Client listens for JSON messages sent from the server
Now all of this is easy and straightforward to do manually, but I would like to leverage a server of some sort to handle all of the connection stuff, keep-...
It's hard for me to go into exact detail on what the server needs to do (due to NDAs and what not), but it should be sufficient to say that it needs to handle a lightweight binary protocol with many concurrent connected users, ~20.000 is where we have a pretty decent estimate.
Note that clients won't be sending/receiving constantly, but...
Hosting an application on a web application server e.g. JBoss automatically brings in lots of app server specific functionalities with it e.g. security, clustering & load balancing etc. I have a situation where I have to develop a server app with which, legacy apps can talk to over TCP/IP socket as well as be highly available. Initially...
This SO answer says "The Flash Player now looks for a policy file on port 843".. I have a policy server that is listening on port 843 which sends out an XML policy to Flash clients. Is this enough? What is the "xmlsocket://" protocol? Is it just a way to tell Flash player that we're talking about sockets when using the loadPolicyFile() m...
I have a simple socket server, that waits for a message and responds. How can I test this? Is there a client app or something that can help me send some data on a specific port to a server, and see the output? Telnet?
...
Hi,
could you please advice how to connect to development machine from device?
I can easily do this from Emulator, but from device I have connection timeout exception.
Here is my code:
String hostname = "10.0.2.2";
int port = 4444;
Socket socket = null;
try{
socket = new Socket(InetAddress.getByName(hostname), port);
} catch(U...
I have the following problem to solve. I want to make a number of requests to a number of "remote" servers (actually, a server farm we control). The connection is very simple. Send a line, and then read lines back. Because of the number of requests and the number of servers, I use pthreads, one for each request.
The naive approach, ...
Here is an issue with a socket I am having:
Public Sub Connect(ByVal server As String, ByVal port As Integer)
Dim IP As IPAddress = IPAddress.Parse(server)
Dim EP As IPEndPoint = New IPEndPoint(IP, port)
sock.Bind(EP)
sock.Connect(server, port)
End Sub
The socket is declared like this, at the top of...
What is the best way to make a standalone java server built using J2SE Socket API high available? Using an HTTP server would have been a good choice specially for the built-in features e.g. security, clustering, transactions, etc. but the server should be capable of accepting TCP/IP socket connection from java & non-java clients (mainly ...
Hey everyone,
I have built a two-player tic tac toe game in Java, using sockets (no threads). I have it working, except for terminating the clients when the game is over. Basically, I have it set up so that once a game is over (the server recognizes a win or a draw), then the server will send a message to the two clients. If the clients...
Hi,
I can't find in the socket java API a way to close a inactive connection open for TIMEOUT millisecond.
The goal is to avoid an embarassing error when I forget to close the socket explicitly (and force the distant resource to be rebooted).
If I don't find a low level method, I will add a last-time-used value to our connection, and ...
Is that possible?
I'm writing a web-admin interface for a network-system. I need to listen to a specific UDP port and show it in browser. Can I do that in javascript?
Also; any other ideas are welcomed.
early-edit: Here's another idea:
I have php and perl support at server-side. JS can call a php script to start listening, which will a...
Hi all, I'm having some problems reading from a socket. Basically, I can connect to the machine without an error. I can write to the machine without an error. I cannot seem to read the output.
Here is what I'm doing:
$header1 = chr(0xFF).chr(0xFB).chr(0x1F).chr(0xFF).chr(0xFB).chr(0x20).chr(0xFF).chr(0xFB).chr(0x18).chr(0xFF).chr(0xFB)...
Hi, I'm trying to connect to a server using BeginConnect and when I specified an incorrect IpAddress or Port I get a SocketException.
The problem is that my try/catch doesn't catch the Exception:
private void OnConnect(IAsyncResult result)
{
try
{
socket.EndConnect(result);
status = Status.WaitAck;
soc...