User Profile
Collapse
-
mysqldatareader.read()
mysqldatareader .read()
is it capable of returning multiple rows in the database or does it return only the first row that matches the criteria?
if so, then how do I read multiple rows from the table.
also, does checking if the function returned true or false say anything about empty sets? -
-
c# - file transfer - using sockets
I need help coding a file transfer in C#. It would be over TCP/IP using sockets...
most of the solutions i have come across, they use networkstream
and i have read online that there is no need to use networkstream with c# sockets... so how do I do it?
also, do I need to worry about serialization/deserialization ?
any help would be greatly appreciated -
no, i think i still did not make my question clear...
all I am saying is ...
table1 made user1 get numeric key 1, how do I ensure table 2 will make user1 get numeric key 1 too.
when i do the foreign key, it doesnt quite ensure that...
did I make my question clear?Leave a comment:
-
yeah your first post does not help me quite much...
but yeah you second post probably indicates what I am trying to do
thanksLeave a comment:
-
Getting started with foreign keys
I have two tables...
both of them have first field as autoincremented numeric key
and second field as user id of the person...
i want to make sure when data is inserted into row 1 of table1, the relevant data also gets inserted in row 1 of table2. In other words, I want to make sure that if two rows of these two tables have the same primary key (that autoincrement int), then they both are pointing to information of the same... -
Question about numeric keys...
how do they work?
so i saw someone posting like...
[CODE=mysql]Create Table login
(Id int(4) NOT NULL,
UserName varchar(20) NOT NULL,
Password varchar(6) NOT NULL,
securityQuestio n varchar(50) NOT NULL,
SecurityAnswer varchar(50) NOT NULL,
Primary key (Id));[/CODE]
This person is clearly using numeric key...
but how do they work?
If I need information... -
chat messenger - security issues?
I have searched online, and what I mostly come across is what these security issues are...
for example, Worms, Backdoor Trojan Horses, Hijacking and Impersonation, Denial of Service etc.
but I dont recall coming across something that deals with HOW I would avoid these issues while writing my messenger.
From what I have understood so far, the security really does depend a lot on the user, because he ultimately decides... -
oh? I had no clue I would have to use semaphore with remote procedure callLeave a comment:
-
-
Rpc - C
so i have to write a program in C that makes linux remote procedure call.
i have a couple of questions
1) when multiple clients call the remote procedure simultaneously, how does the server handle it? In other words, while writing the code for server, do I need to guard against something? ( you know like critical section and all that? or am I worrying unnecessarily?)
2) if i need to tell my code the... -
not really a C question, but thread ids
i am using g++ compiler
i am getting negative thread id on using pthread_self() function...
i tried doing both int tid = pthread_self()
and pthread_t tid = pthread_self()
i still get negative values...
furthermore, should i expect tid's to be 0, 1, 2, 3.... instead of 2345, 2346...
also, i know process id's are consecutive....
(if process 1 as pid = 2345,... -
I did use the statement include <queue> before using namespace std;...Leave a comment:
-
i am having a hard time with stl queue
i thought it would be kinda cool to use stl queue in my c++ program. however, it turns out stl queue is not happy with me...
i have a header, and I have declared the queue as
queue<int> q;
and please do note that i have used #include <queue> too
but it would still not recognize queue as a class, it would tell me "error: expected constructor, destructor, or type conversion before...
No activity results to display
Show More
Leave a comment: