Hi,
I did a sample program in C# for Socket Programming - One simple server and one client class.
Following lines of code send the data ("TEST") to the Server.
byte[] byteData = System.Text.Enc oding.ASCII.Get Bytes("TEST");
if(m_clientSock et != null)
{
clientSocket.Se nd (byteData);
}
Unfortunately my callback method in Server program,...
User Profile
Collapse
-
Send Method in Socket Programming in C#
-
Thanks for the reply Girish.
I am using Client Server application.
I found that we can use the following ways to connect.
1) ODBC
2) OLEDB
3) Vendor specific APIs (like the one provided with C# Oracle.DataAcce ss)
I am fine with Oracle. But, for DB2 I am not able to find suitable driver. Hence, I am looking out for that.
Also, I am thinking about the better way... -
Connecting to Oracle and DB2 from C#
Friends,
My application needs to connect to both Oracle and DB2 from C#.
What is the best way to do it? [I am from Java and new to C#. In Java we write a common code in java JDBC API. This API will be implemented by both Oracle and DB2. Hence, my same code will work fine for both Oracle and DB2. Does any similar things exist in C#?]
Also, kindly pass me some URLs which might be useful in this regard.... -
Please read the above statement as "What is the way to run the other class in parallel in the same environment?"...Leave a comment:
-
Two Main Methods in a single project
Hi,
I have a single project, which contains two class files. Each class file has a Main() method.
I set up one project as a start up project (in Visual C# Expression Edition IDE) and I am able to run it.
What is the way to run the other class in parallel?
Is there a way to call either classes separately using some commands?
Regards,
Desigan -
Hi,
Thanks for the reply.
This is the problem that I face in short. I have a singleton class and in that there is a global variable. Of course (as you mentioned), this variable is accessible by any classes.
Now, my application has
- a console application that updates this variable
- a GUI which also update the same variable
Now, console application works fine. Say, it has...Leave a comment:
-
Design and Deployment of C# Programs
Hi All,
I am new to C# and I am facing a problem with respect to design and deployment of C# program.
My application needs the following:
a) A console program will do some data processing and will store the results in a static variable in Singleton class.
[Imagine the logic like this - This program takes the list of absent employees and find their emailids from a database and store the emailids in a...
No activity results to display
Show More
Leave a comment: