473,378 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Sockets help: Client for an already existing Server

jlm699
314 100+
**I was unable to find any previous posts about this so please forgive me if I did not search hard enough.**

Ok, so I'm developing a client for a server that has already been established and set-up. This server is written using C, and the client that I'm developing needs to be written in Python. Does this fact alone cause a problem? I've already got the framework for the client application laid out, which connects and sends no problem. I have no way of testing what exactly is going wrong however as when I do a receive my program just hangs forever.

Is this because of the fact that the server is not written in the same language as the client? I was hoping to avoid using python wrappers for a C client but if that is what it comes down to then I guess I have no choice.

Thank you in advance for any advice you could pass along.
Aug 6 '07 #1
2 1016
Thekid
145 100+
**I was unable to find any previous posts about this so please forgive me if I did not search hard enough.**

Ok, so I'm developing a client for a server that has already been established and set-up. This server is written using C, and the client that I'm developing needs to be written in Python. Does this fact alone cause a problem? I've already got the framework for the client application laid out, which connects and sends no problem. I have no way of testing what exactly is going wrong however as when I do a receive my program just hangs forever.

Is this because of the fact that the server is not written in the same language as the client? I was hoping to avoid using python wrappers for a C client but if that is what it comes down to then I guess I have no choice.

Thank you in advance for any advice you could pass along.
Can you post your code to be viewed?
Aug 7 '07 #2
jlm699
314 100+
Actually it started working .. and I don't even know what I changed! So I guess it's not a problem at all to have a C server exchange socket data with a Python Client, sweet!
Aug 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Johannes Eble | last post by:
Hello Python community, I am trying the echo-client and echo-server examples in Chapter 10, "Programming Python" by Mark Lutz. It is probably the most simple sockets sample: A socket server just...
2
by: Luke Balding | last post by:
I'm toying with the idea of swaping out some of my C++ client and server socket programs with vb.net equivs. but I finding that the examples included in the msdn do not seem to interoperate with...
1
by: Adam Clauss | last post by:
I am (attempting) to move an existing socket application to use raw sockets. Right now, my application is essentially a port forwarder. Upon receiving a connection, it will open a connection to...
2
by: jasonsgeiger | last post by:
From: "Factor" <jasonsgeiger@gmail.com> Newsgroups: microsoft.public.in.csharp Subject: Multiple Clients, One port Date: Wed, 19 Apr 2006 09:36:02 -0700 I'm been working with sockets for a...
14
by: eliss.carmine | last post by:
I'm using TCP/IP to send a Bitmap object over Sockets. This is my first time using C# at all so I don't know if this is the "right" way to do it. I've already found out several times the way I was...
10
by: David | last post by:
I have googled to no avail on getting specifically what I'm looking for. I have found plenty of full blown apps that implement some type of file transfer but what I'm specifcally looking for is an...
1
by: larspeter | last post by:
Hi all. I have a problem with TcpClient ... I am conneting to a server with TcpClient and returning the answer through a webservice. It actully all works fine. BUT if I make a lot of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.