Can I write server, client code in a same program and run them [closed] - c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
just trying to test socket programming. I am thinking to create a project and write both server.c and client.c in that same project. Is it possible or do I have to create two projects and run them parallely? I am writing in C.

Yes you can. but if you're using an IDE (eclipse, or something else you prefer) it would be easier for you to do it in separate projects, as you can just build & run each one and both projects will run in parallel, and then the server & client will be able to communicate with each other.
When they are in the same project, you can tell the IDE to build the project, but you'll have to run it from command-line in order to run server & client at the same time.

Related

How can I turn my code into an actual aplication for windows? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I developed a program written in C language using Gtk+ 3 for visual interface, and to run it I always use the comand line (Im using cygwin), but I would like to know how can i make my program an aplication, witch can be installed in windows and function like any other aplication (launch it throught files explorer or even throught the desktop enviroment)?
Thank you for your answers!
Provided that you have written the code portable, you basically have two options.
Install GTK on Windows. You can find instructions here: https://www.gtk.org/docs/installations/windows/
Rewrite the whole application for Windows API. This is NOT trivial.
On top of that, use windows installer

a server client application using TCP in C in linux environment, [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i have created a server client application using TCP in C in linux environment,and it is working very well.
I wish to improve the application by including a cryptographic algorithm into it so that the server just gets to know about who has logged in and out of the server but not about the information shared between the clients.
Any suggestions for algorithm that i should employ in my project to achieve the desired result.
I am currently looking into MD5 algorithm.
As far as I understand you want to encrypt/decrypt messages between users. If so MD5 won't do it as it is just a hash function.
https://en.wikipedia.org/wiki/MD5
Probably the best algorithm to do so would be AES:
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
There are many implementation (including in C) on the web so you can literally copy-paste the code (mind the license ;) ).

Simple web server using C programming [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to develop a web server using c in Linux. Using that we need to start and configure services. is their any help like pseudo code or sample programs like that.
http://www.gnu.org/software/libc/manual/html_node/Server-Example.html
This is a simple multi-user web server built in C. I had to do one of these last year for a class, and I find it quite cool, though a little bit frustrating.
The Apache HTTP server, the world's most popular HTTP server, is written in C. Its documentation, and source downloads are located here

How to implement a simple telnet client in C to send command to server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to use telnet to send shell command or execute shell scripts on server automatically,
any one have done such problem? can you share your experience?
It's all about socket communication. You need to know how socket works. Then, implement Telnet protocol by yourself.
If you don't want to implement your own telnet libraries. You might download putty source and see if you could leverage from it.

Java J2SE Code Compatibility in any OS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am in a confusion now. I am developing a java project in windows platform. but now, the problem is how can I get to know if my all codings (Java J2SE) will work in any OS? In my codings there are varies parts like serial port programming, smslib, RXTX lib, database connections (ODBC and JDBC). Can any one offer my some ideas or any solution for this?
Thank you very much.
Your code should work as long as you are not using any OS native APIs. Im afraid you might be doing so as you have mentioned your code uses things like serial port programmin, RXTX lib etc. If NOT then you are good to enjoy the Java 'write one and run anywhere' feature.

Resources