Hi folks,
I am working on getting the performance parameters of a tcp connection and one these parameters is the bandwidth. I am intending to use the tcp_info structure supported from linux 2.6 onwards, which holds the meta data about a tcp connection. The information can be retrieved using the getsockopt() function call on tcp_info. I h...
This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can't get it.
I right click and drag an outlet from the new referencing outlet circle, and into my header where the object is declared, but nothing happens.
Has anyone used this?
Thanks a lot
...
Hello,
I've written a Delphi (2009) app with Indy (TCPServer/Client).
And I have a problem at the level of TCPServer : it detects the deconnection(after a reboot of the PC) of the Client only when the client tries one more time to reconnect to the server.
I've executed my app step by step, and when the client tries top reconnect (after t...
Hi all,
im using the following code to open a connection
NSString *message = [NSString stringWithFormat:@"body of the message"];
NSURL *url = [NSURL URLWithString:@"sample url"];
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url];
[theRequest setHTTPMethod:@"POST"];
[theRequest setHTTPBody: [message dataUsing...
When using java.net.Socket.connect(), both a refused connection and a timeout result in a ConnectException.
java.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection refused: connect
How can I safely distinguish between the two? Sure parsing the error message does the job. But when the message cha...
Hi there,
Since it' apparently not possible to authenticate with LDAP on my BlackBerry App, I'm trying to use a kind of workaround. Instead of authenticate directly on the LDAP Server, I want to use a Web Service in between. So it looks like this
App --calls--> Web Service --calls--> LDAP Server
So the Web Service should take th...
I'm having some trouble getting URL connection to work. I find that if I create one URL object it works fine. But everything after that doesn't work at all. At first I thought it could have been due to me not closing a stream but that was not the case.
-1 = Failure
1 = success
Testing:
URLFail test0 = new URLFail();
UR...
I ve installed MySQL (last update).
I need to code, that ll create & establish a connection with SQL DB
& manage the DB(using SELECT, INSERT, CREATE).
I did everything but, I am not able to create connection. I've also installed the MySQL/J connector, I just extracted the .zip pack in a folder & added the folder path in Variables).
Ca...
Hi,
I have a Perl program and a C program. I want to run the Perl program and capture the return value of C program. To make it clear:
C program (a.out)
int main()
{
printf("100");
return 100;
}
Perl program:
print `ls`; #OK
print `a.out`; #No error but it does not print any output.
Any ideas?
Thanks.
...
I really enjoy the JDBC abstraction in Java. I don't care what database type I am connecting to, or what driver is being used. That's all set up in the DataSource object, and once it's done, we just use connections. It's such a consistent API in order to commit/rollback, perform transactions, and you only need to learn it once, and move ...
Hi
What are the steps to be taken to use oracle instant client to connect from excel to oracle database. I have the unzipped basic instant client folder. The OS used is Windows XP.
Here is my connection string:
strConnection = "Driver={Microsoft ODBC for Oracle};Server=servername;
Uid=username;Pwd=password;"
I have ...
I've made two small/test Silverlight apps with VS2010 (I am new to it), having same problem with both... When I run/debug it from within VS2010, the app runs and it connects to the database fine. But when I publish it to the IIS (on the same machine VS2010 is on), the app will run, but it will not connect to the database.
I'm using SQL ...
Does the Windows XP SP2 limit of 10 half-open connections refers only to embryonic connections or also to the other known type of half-open connection which happens when one side has crashed?
Thanks..
...
How can I open a specific port in android?
I have a server socket but the connection is rejected because the port is closed.
try {
ServerSocket server = new ServerSocket(2021);
Socket client = server.accept();
} catch (Exception e) {
// TODO Auto-generated catch block
a = false;
e.printStackTrace();
}
...
Hi,
I'm stuck at the seemingly simple task of connecting remotely to MySQL. I inherited the server, so don't know how it was installed. Took a look at /etc/my.cnf (the only my.cnf on the system as far as I can tell) and found
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password f...
I have a HTTP client that sets the Connection header to the following value when I make a request:
Connection: close
However when the server sends a response, it is setting the header to Keep-Alive:
Connection: Keep-Alive
This seems intuitively wrong to me, and I am wondering how the client should handle such a response from ...
Heey,
Can somebody help me out?
I'm working on a simple c program that has to connect to my database, then do a query and then close the connection.
int main()
{
MYSQL *conn;
conn = mysql_init(NULL);
if (conn == NULL) {
printf("Error %u %s\n", mysql_errno(conn), mysql_error(conn));
exit(1);
}
if (...
Wonder if anyone can help, I have created a database in C# 2010 (using the SQL Express installed with C# express) via the database explorer.
I can connect to the database using the connection string:
Data Source=.\SQLEXPRESS;AttachDbFilename=C:\temp\Documents\test.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True
...
our project(banking domain) is divided into 4 layers.
One of which is a communication(COM) layer which developed in JAVA uses MINA.
Our host applications run on UNIX machine which serve request from users via socket communication.
The COM layer has a java program which acts both like a client and server.
server to Requests from other JAV...
i'm using vb 2008 and local database sql server compact 3.5 to build a application.
the problem is that i can't insert a new data to the database from the app. i'm wrote the query right at dataset and using table adapter. but when i call the query, it succeed but the data don't exist at database.
for example:
at table adapter, i made Add...