Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I use client and server in different languages?!

Status
Not open for further replies.

Negneg

Programmer
Dec 29, 2010
10
I have developed a client-server system in python and now I want to make equivalent codes in C. is it possible to use client in python codes and server in c codes?! I mean am I able to send a .py file to server which is written in c?!
 
C and Python are different languages, even though they share much in common. As such they are going to have different supporting libraries of functions. You can't simply substitute C for Python.

How do the client and server communicate? There may be equivalent libraries for C to provide similar functionality, but you will need to rewrite the application.


 
If you establish some comms protocol then as long as the languages follow that protocol and deliver the data in the correct format, it doesn't matter what language you write it in.
 
thank you so much for your reply..

but the file which is been transfered from client to server is a .py(python) file, so I want to make sure if it is possible to run a .py file by a server writen in c?!
 
Why do you want to make the server in C?
If it works the way it is now, I'd say just leave it as Python.
 
@ cpjust: thank you for your concern, the reason I want to write it in C is because I need the result to be .EXE file..so whoever wants to check the results does not need to install python in their computer to verify the result.

the main idea is to transfer the .py file from client to server which has the lisence for specific software to run the file and return .exe file for those computer who dont hv the liscence...hope its clear for you..tnx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top