networking

SQL ERROR: Verify that the instance name is correct and that SQL Server is configured to allow remote connections?

I am getting following error while connecting to my local Sql Express: An error has occurred. Details of the exception: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is ...

Java socket not throwing exceptions on a dead socket??

We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the ser...

How to see network requests made by a swf

I have a swf (flash file) who is making http request. Which is the easiest way to see what request the flash application is doing? P.S. I do not have the program as a fla file ...

example.com is OK for domain example, what is example IP Address?

We use the example.com often for domain name reference. I wonder if any IP address used as an example IP address to mention in references like tutorial or notes?. I knew the loop back interface 127.0.0.1 can be used but it has been known for local system always. Can example.com IP Address used for this purpose legally? ...

How to wait for an other process to start listening on a local port?

I have a test driver program that launches a separate test server process. The test server process listens on a local port, and after it's ready, the test driver runs a test that accesses the test server. Currently the test driver repeatedly tries to connect to the local port (loop some, sleep some, try again). It's not an optimal solut...

SQL Server 2005 Network IO Wait Times (ASYNC_NETWORK_IO Wait Type) Problem

Hi, We are having performance issues on our web app during peak times, which is currently split between one 2003 IIS6 Web Server, and one SQL Server 2005 DB Server. The query times on the DB server look fine (around 30ms), and the CPU is low (under 20%), yet queries can take a long time to execute on the web server (over 1 second). I w...

Avoiding image compression on some 3G networks

I want to download an image from the 'net and set it as the users background. This works great over wi-fi, and some 3G networks, but others (T-Mobile UK, for sure) seem to compress the images before sending them. This effect is noticeable when using the browser, too - however, if you long press on an image and save it, when viewing in ...

Problem with SharpPCap

I get BSOD almost every time I abort the thread or close the device. Somebody with the same issues? EDIT: I saw that it happens on the N-th time I close my app, even if I don't close the devices. ...

.Net async Socket multi-threaded sending

hello stack overflow! i have a socket, im using to send large buffers through, if ill do something like // may be accsed form a a lot of threads void Send(byte[] buffer) { m_socket.BeginSend(buffer ... , SendCallback); } void SendCallback() { m_socket.EndSend() // if not done sending- send the reset m_socket.BeginSend() } m...

How to use URLConnection through a SOCKS proxy?

Hi. How can I set the SOCKS proxy for a URLConnection given by (new URL(url)).openConnection()? Different proxies are needed on a per-connection basis, so please don't suggest setting system properties. ...

[.NET] RDM Sockets

I've recently come across .NET's RDM Socket type (SocketType.Rdm) and its features sound very promising, sounding very much like a reliable connectionless protocol. However, I've found no examples of its usage, and little documentation on the protocol itself. First of all, how do I instantiate a socket of this type? Specifying SocketTyp...

Why apache is recv()-ing something for 15 sec every time?

I have ZendFramework based application that is using XMLRPC communication to other ZendFramework app. Both are on the same server (for development). That communication is very slow, and I am trying to find out why. After profiling, I got to the point where there is a slowdown within fgets() of ZF Lib XMLRPC reader. While strace-ing Zen...

Continuously send mouse position to another machine

What would be the best way to continuously send the mouse position to another computer in C#? So far I use a TCP socket for transportation. I get the ToString() of MousePosition, convert it to byte[] and send that byte array. On the receiving side I append the bytes to a StringBuilder, parse it and construct a new point. At least it wor...

Serializing data in C

Hey all, Please tell me how to serialize data (like binary files) in C. And, how can i send this serialized data over sockets, so that it can be successfully received by the corresponding Java client. Actually i want to convert this binary file into byte array so that it can be send over the sockets. Thanks in advance. ...

Sending large data over sockets in java

Hey all, I am working on client server architecture and i am just beginner in this thing. Here my server is of C and client is of Java and i want to send a binary/database (.db)/image file of size around 10 - 20 MB from C server to the Java client. But data is lost while implementing the following code: Server side C code is: int sock...

Resolve host name to an ip address

I developed a client/server simulation application. I deployed client and server on two different Windows XP machines. Somehow, the client is not able to send requests to the server. I tried below options: 1. Pinged server machine successfully from client using ipaddress. 2. Pinged client machine successfully from server using ipaddre...

networking header files in C++

I'm trying to convert a c program into c++ program . what is the equivalent header file for socket.h in c++ ? ...

Socket.Select returns error "An operation was attempted on something that is not a socket"

When calling Socket.Select with lists that are verified to contain only Socket objects, I sometimes receive the error An operation was attempted on something that is not a socket. I can't find a pattern for occurrence. Socket.Select(readList, writeList, null, timeOut > 0 ? timeOut : 0); ...

What's the best way to send an object over a network in Python?

I need to send objects around a network. I'm going to be using Twisted, and I've just started looking around the documentation for it. As far as I know, the only way python implements sockets is through text. So how would I send an object using strings? Pickle? Or is there something better? Thanks, Alex ...

How to create ring network structure in java

Hi I have to create a ring structure network by using java and i am wondered if it has any library to help me create this ring structure? or I have to manually create it by myself thanks a lot :) ...