connection

Problem with TCPListener

I have some kind of problem and I can't check this at home if its working or not. Here is the code using System; using System.Net; using System.Net.Sockets; using System.Threading; using System.IO; using System.Net.Security; class Program { private static IPAddress ipAddress = IPAddress.Parse("127.0.0.1"); private static int port = 600...

Connection string with relative path to the database file

Hi I am beginner. I load data from sdf database in winforms App. I use full path to the database file . Example : conn = new SqlCeConnection { ConnectionString ="Data Source=F:\\My Documents\\Project1\\bin\\Debug\\Database.sdf" }; I d like use a relative path to the database file. For example. I have sdf file in folder F:\My Doc...

javascript/dashcode: check for internet connection

i'm developing a widget that is fetching data from the internet via ajax and i want to provide a error message, if the widget cannot connect to the server. i'm doing the request with jquery's ajax object which provides a error callback function, but it's not called when there is no internet connection, only if the request is made but fai...

Using Java ApplicationModule to connect to Oracle Database

I'm working in JDeveloper and I need to connect to Oracle Database using the ApplicationModule interface. So I set up the connection, imported the table and created a view. Then I created a new ApplicationModuleImpl that connects to that view. Now, how do I get to the data through the ApplicationModule object? I read the documentation ...

Unix C++ simple server question: sending data back to browser

Hi. I am creating a simple Unix server written in C++ that simply waits for incoming connections, and then when a connection is established, it sends the requested data back to the client's browser to be displayed. I have everything working except for the sending of the data to the client. This is how it should work: I start server and...

Local connection with Database

How do I connect my local client application with the database on the server? I am using Delphi and MySQL. ...

Terminating and Starting Data Connection on Windows Mobile 6.5 in C#?

Heys Guys! Just got a rather annoyingly akward question :S I want to create an easy application for windows mobile devices, i have recently got a HTC HD2 and the connection is being eaten by the weather app, email accounts and windows live service :@ I am getting rather annoyed with this and well i have set myself a project to give m...

How to Improve Performance and speed

I have written this program for connecting and fetching the data into file, but this program is so slow in fetching . is there is any way to improve the performance and faster way to load the data into the file . iam targeting around 100,000 to million of records so thats why iam worried about performance and also can i use array fetch s...

Authentication Failed when connecting to Imap server

When I'm connecting to imap.gmail.com, the server is connected. But, the authentication is failed due to following error Server returned:CAPABILITY IMAP4rev1 UNSELECT LITERAL+ IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE Any Idea plz??? ...

Connecting to MySQL with Tcl

Hello: I had a question about where a MySql database has to sit for a Tcl application to read it. Currently, I have a Tcl application that reads off of a sqlite database. For the application to find the database, the Sqlite Db must be located in the same folder as the Tcl application. I am planning on upgrading the Sqlite Database t...

With groovy.sql.newInstance in grails - who closes the connection and when?

I'm using grails but I have lot's of stored procedures I'm trying to call from groovy.Sql.newInstance... In all the examples I've found I never see anyone actually calling close on the connection. But when I tried running a bunch of methods within one response that each uses its own call to newInstance, then it got an error that there ...

in Grails can you use both sql.newInstance and Domain class calls in the same method?

Can you have code that looks like this? def methodname () { proc = "sql to call a stored proc" def conn = Sql.newInstance(DB_CONN, DB_USERNAME, DB_PASSWORD, "org.postgresql.Driver") def result1 = conn.rows(proc) def result2 = MyClass.Find("from MyClass where foo='bar'") return [result1, result2] } If so are they using different connec...

ADO.NET for oracle doesn't close connections

When connecting to oracle server from .NET application using ADO.NET for oracle, even if i closed the connection, the connection remains inactive at the Oracle server, so new connections could not be established because of the sessions per user limitation, is there is any way to make sure that all connections are closed? from Oracle serv...

Setting the value to an int when clicking a button in Cocoa

Ok, i'm new to the whole GUI programming so this might be a very simple question but has proven difficult to me. I have an application with 3 buttons. Button A is the main button, it starts and stops the application. I created a class with an IBAction on it and wrote the code for that button. it works. I also have button B and C that ar...

Why blackberry apps cannot do network i/o AT ALL outside of North America without BIS?

I was told by a consultant in a 3 hours discussion that basically blackberry 3rd party apps (Distributed through AppWorld or not) cannot perform any network I/O outside of North America without becoming an alliance member. Is this true? Basically the story is that only North America can make use of APN connection, anywhere else in the w...

multiple requests in a single connection?

Hello Friends, Is it possible to put multiple requests without breaking the connection using python httplib?. Like, can I upload a big file to the server in parts but in a single socket connection. I looked for answers. But nothing seemed so clear and definite. Any examples/related links will be helpfull. Thanks. ...

WCF service connection closing when trying load more records

I use WCF service to connect WPF front-end application with ERP back-end database. I get an WCF service error: "The connection was closed unexpectedly" in my WPF application when trying to load table with many records (about 1000). Everything is going fine on tables with 10 - 20 records. In my settings of the WCF service I have nothin...

asp.net; repeater.databind and closing of database connection.

Does a connection made to the database get closed automatically when a call to the repeater's databind method is made? here is the code snippet contained within a wrapper class method to the ent. lib. public SqlDataReader RunQuery(string strQuery) { Database db = DatabaseFactory.CreateDatabase(); string sqlCommand = strQuery...

How can I stop a thread in C# ?

I've created a Client-Server application, and on the Server I want to have the oportunity to stop the server and then start it again. The problem is that I can't stop the Thread that listen for Tcp Connections. How can I close a Thread in C#? Thanks. private void KeepServer(){ while (this.connected) { tcpClient = tls....

Connecting to SQL Server using Delphi and dbExpress

I use RAD Studio 2010 including latest updates 4 and 5, my database is SQL Server Express. I set up a TSQLConnection but it won't connect, error message is "DBX-Error: the driver could not be initialized correctly. A client library may be missing, may not be installed correctly, or may have the wrong version" (error messagetranslated fr...