Does someone please tell us where to find classes or functions that communicate with asynchronous sockets (TCP and UDP) between programs runing on unix and windows?
Thanks for your reply
PS; I have already programs that communicate with synchronous sockets.
...
I've been banging my head trying to figure some things out. So, I'm looking for advice and research material (via links). Here's the scenario:
We have a library (say, CommonLib) that contains resources needed by several other applications (say, AppA, AppB, AppC, and so on...). Now, the way this is currently working is AppA instances, ch...
To implement a production level java socket server, what are the potential gotchas that I have to be aware of?
For now I have got a basic code structure using the ServerSocket and Socket classes of core java.net package. The server waits for a client and spawns a new thread for it.
I was wondering whether this is the way to go or are th...
Given this stack trace snippet
Caused by: java.net.SocketException:
Software caused connection abort:
socket write error at
java.net.SocketOutputStream.socketWrite0(Native
Method)
I tried to answer the following questions:
What code is throwing this exception? (JVM?/Tomcat?/My code?)
What causes this exception to be thro...
What library should I use for network programming? Is sockets the best, or is there a higher level interface, that is standard?
I need something that will be pretty cross platform (ie. Linux, Windows, Mac OS X), and it only needs to be able to connect to other Python programs using the same library.
...
If i use UDP sockets for interprocess communication, can i expect that all send data is received by the other process in the same order?
I know this is not true for UDP in general.
...
Situation:
I have tcp client made with Python and tcp server made with Qt. I try to send bytes with my client but I can't get Qt server to read these bytes.
Using Python made client and server, everything works fine. Also I can get my Python client work with C# server with no problems.
Code for Python client:
import socket
import sys...
Hay Guys, I'm new to Android but heres what i want to do.
I want to beable to open a connect to a server using a given IP and PORT, then send commands to the server and get data back.
Any ideas what i need to google to help on this? I know how to do it in PHP (using fputs, fgets, and fsockopen).
any help would be brill.
Thanks
...
Hi,
I'm wondering how to implement a client management for a socket server.
I'm having the case where I would like to know whether the client has just reconnected or if it's a new client. I know, it shouldn't be that way. It's a rather temporarily server, though, which is only to be used for a couple of hours.
I was thinking about let...
I have a multi-threaded server that handles client requests, and makes new threads for each one that is connected. This is working great and I am able to send "text" messages back and forth to the server without a problem. Like a chat system.
Now I have in mind a way to be able to send files across these client connections to the server...
Can several threads operate on the same socket descriptor, i.e accept(sock_fd) at the same time without concern?
The platform I'm mostly interested in is POSIX/Linux.
...
I have code where I am trying to grow the byte array while receiving the data over my socket. This is erroring out.
public bool ReceiveObject2(ref Object objRec, ref string sErrMsg)
{
try
{
byte[] buffer = new byte[1024];
byte[] byArrAll = new byte[0];
bool bAllBytesRead = fals...
Hi, I'm using a C socket library I found online to implement a tcp socket data transfer program.
Is it possible to make 2 threads share the same socket connection (1 read and 1 write), and have the read thread perform a blocking read and recv data while the write thread constantly writes data?
All of the example socket programs I've se...
Hello,
I have client/server application. Client on iPhone, server on Windows based machine. First, i establish connection to my server and that is works fine. When I go away from WiFi area - client disconnects (is's expected). But, when I enter into WiFi area again and tried connect to server, connection is established but client doesn'...
I have a multihomed system with multiple NICs and IPs.
I am not %100 sure how my Sun JVM chooses the IP representing 'this' system (that's the "source IP" when connecting to another system using Socket or URLConnection). Does it pick the system default NIC, or perhaps it does a reverse lookup on the system's name? etc.
In any case, is ...
I'm working on an application that contains several server sockets that each run in a unique thread.
An external utility (script) is called by one of the threads. This script calls a utility (client) that sends a message to one of the server sockets.
Initially, I was using system() to execute this external script, but we couldn't use t...
I am currently working on a Flash socket client for a pre-existing service/standard. The service uses TCP flow control to throttle itself and the Flash socket is reading in everything as fast as it can despite not being able to process it as fast as it's being taken in. This causes the bytesAvailable on the socket to keep increasing an...
I'm trying to see how a certain application is talking to a server in SSL. Basically, the process just hangs when it claims to have done some SSL communication. I want to debug the problem by catching the traffic, but I can't really use a sniffer since SSL will probably look like a hexdump.
Is there a good man-in-the-middle tool that ...
I'm making a python URL grabber program. For my purposes, I want it to time out really really fast, so I'm doing
urllib2.urlopen("http://.../", timeout=2)
Of course it times out correctly as it should. However, it doesn't bother to close the connection to the server, so the server thinks the client is still connected. How can I ask url...
Hi, folks !
So the problem changed from what it was, i'll leave the original question below to prevent bad reviews on answers like I had after someone editing his question I answered :
So I am working on a (really lame) shared hosting which has PDO installed, but it doesn't work.
With default parameters
<?php
try {
$dbh = new PDO(...