Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

C# server / Python client

Hi, following my previous post: Sockets ...

I'm still trying to create a client / server program so that my server is c # and my client is python (I followed the official microsoft doc)

And so I have trouble with communication, I would like to just receive a string sent by the client (and reverse afterwards).

So here is the server code: (with an error)

https://pastebin.com/qNRU8Hrm

In the server code, there is an error:
CS1503 Argument 1: cannot convert 'byte []' to 'byte *'

and if I add [] it shows me another error:
Error CS1503 Argument 1: Unable to convert "byte" to "byte *"
WTF !!!


and the client code (all is well [normally])

https://pastebin.com/QPz0eWhT

Help me please,
I am obsessed with this!
I'd recommend doing it the other way around. Creating the server in Python is much more efficient than C# and then while you're at it swap out the C# client for C or C++. Even if you aren't the best in those languages C and C++ are much more beneficial to learn than C# imo
I know but the problem is that I can't do this in C ++ at the moment, and I have already done the whole GUI in C # (actually I would really like to have a GUI seen that I don't understand how we can select a client when there is no interface) and in python it's a hassle to make interfaces ... But ok, I will start by training with this configuration (the client in C # on the other hand)

Thank you


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 632 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by Mr.7Oct 28, 2019 12:45 PM 2 137 Oct 28, 2019 12:45 PM
Last Post: Goodies
[Python] by HK_2432Sep 22, 2019 06:35 AM 6 252 Sep 22, 2019 06:35 AM
Last Post: 4ground_daemon