connection

dotConnect for MySQL license cannot be used with TOAD

Hello. I am trying to connect to MySQL with TOAD. I have dotConnect for MySQL (trial) installed on my PC. The very first time TOAD's connection with MySQL worked fine and I worked with that connection across 2 days. However, now after my system re-start, when I am trying to make the same connection, I get following error message: Assemb...

SQL state S1000 + TNS:Listener

Hi, I am trying to connect to Oracle Server through ODBC driver for Oracle but when testing the connection I am facing the error TNS:Listener does not currently know of service requested in connect descriptor. Can any1 please tell me what I am supposed to do to resolve this error? ...

C#: How do I terminate a socket before Socket.BeginReceive calls back?

I have a server that receives connection requests from clients. This server makes use of the asynchronous Socket.BeginReceive and Socket.EndReceive method. The code is pretty similar to the code found here. In my case, after calling Socket.BeginReceive I need a timeout such that if the client hangs on to the connection but does not tra...

How to make the http connection timeout/disconnected after a time interval??

hi I am new in apache HttpClient, I used the following code to get the http connection timeout (disconnected) after certain time interval: PostMethod method = new PostMethod(authURL); HttpClient client = new HttpClient(); HttpClientParams params= new HttpClientParams(); params.setParameter(params.CONNECTION_MANAGER_TIMEOUT, 10); //10 N...

Java SSLSocket handshake failure

I'm trying to find a way to establish a connection beetwen a Java client and a C server using SSL. This is the java client: import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocket...

Can I share a single database connection between ODBC and ADO?

Is it possible to have an ODBC connection and an ADO connection share the same underlying SQL Server connection, so that both are using the same SPID? Currently I am using SQLDriverConnect and ADODB::_ConnectionPtr->Open. I can make these connections in either order, so perhaps it's possible to open one making use of the other? (Langua...

Connection Pool in the context of ADO.NET

Like in ThreadPool Is connection pool is a waiting threads for establishing ADO.NET connection controlled by CLR ?. I mean "Pooling" mechanism is same in both ADO.NET and MultiThread ? ...

Possible BUG:ManagementScope.IsConnected does not work as described [RPC_E_DISCONNECTED]

Hi ! I am working on a management helper application in C#, which deals with long running wmi-connections and these breaks with the following error: Unhandled Exception: System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTE...

WCF Tracing. How I can get the exact reason for closing connection?

In my WCF service, when trying transfer large data I constantly get an error: *The underlying connection was closed: The connection was closed unexpectedly* I want to know what particular reason invokes this error, so I set up WCF Tracing and can read traces.svclog file. The problem is, that I can see in this file a lot of information ...

Argument type for Qt signal and slot, does const reference qualifiers matters?

For signal and slot of below type signals: void textChanged(const QString &); public slots: void setText(const QString & text) the type of argument of textChanged and setText seems to work invarable of const and &. Does the constant and reference qualification make any difference compared to just using QString ? QObject::co...

TCP/IP and designing networking application

i'm reading about way to implemnt client-server in the most efficient manner, and i bumped into that link : http://msdn.microsoft.com/en-us/library/ms740550%28VS.85%29.aspx saying : "Concurrent connections should not exceed two, except in special purpose applications. Exceeding two concurrent connections results in wasted resources. A ...

php fsockopen connection

Hey I'm using php and fsockopen to connect to port 80 on another server to read content from a website. I'd like to use the same function to access port 25 to read the mail servers header. Port 25 us being used by my mail server on my server. Is it possible to connect to port 25 on the other server from port say 99 on my server (Or an...

does connections count matter?

We have an application that uses NHibernate to connect to our database on SQL Server.We use connection pooling and session per request approach to execute our queries over SQL Server. We used SQL Server Activity Monitor to monitor connections count and noticed there was 25-30 connections involved whenever a user logged in to system. So h...

Unexpected Connection Reset: A PHP or an Apache issue?

Hello all, I have a PHP script that keeps stopping at the same place every time and my browser reports: The connection to the server was reset while the page was loading. I have tested this on Firefox and IE, same thing happens. So, I am guessing this is an Apache/PHP config problem. Here are few things I have set. PHP.ini max...

IDLE timeout parameter in Oracle.

We are stuck in a situation where one of our processes is taking 3 hours of computing without touching the database. The connection that was taken before calling the process gets closed by the Oracle server and any subsequent query or commit throws connection closed exception. It appears to us that the problem is related to Oracle closi...

How to get the download speed using php

Hi All, I need to get the download speed of the user visiting my site, Is it possible with PHP? If so, How to do that?. Please advice.. Thanks in advance. ...

C#: Alternative to NetworkStream.Read that indicates remote host has closed the connection?

With regards to handling a TCP/IP connection using the TcpClient class, is there an alternative for checking whether the remote host has closed the connection other than waiting for the NetworkStream.Read method to return a 0? ...

XML messages over a TCP/IP socket

I am using C and want to know are XML messages are preferable over text messages as far as communication over a socket connection is concerned? Is there any other good option available rather to go for XML? Which is the best parser(or parsing option) available for parsing XML in C? Is there any standard library which comes with C and ...

Connection between different Web-Services? (eg: Twitter-Feeds on Facebook)

Hi, does anybody know agood way in granting a connection from one service to another, so that both services benefits fromeach other? I would like to have an easy but never the less safe way to do a connection between my server and another server, but I don't know how to do that. It should be ... easy, so that neither the user nor the ...

Catch invalid hibernate connection URL error

If I put the wrong connection URL in my hibernate.cfg.xml file, I want to be able to detect it and terminate gracefully, but I can't figure out how; it just hangs indefinitely on buildSessionFactory() during the hibernate initialisation procedure: SessionFactory sf = new AnnotationConfiguration().configure().buildSessionFactory(); It'...