Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
C#
I need help, I have a computer BTS project and client-server networks, I simply sending binary data need (digital) and thus define the size of bytes of messages between the client and the serveur.Tout it in C # with Microsoft Visual studio 2012.

[Edit] : Translated

What I have tried:

I tried a client single server in C # using Microsoft Visual Studio 2012 and it worked but sent data are phrases like "Message sent" I am trying to send binary data numbers for my project because I work with the spyder card that plays the role of client and the pC that acts as serveur.La spyder card is sent to the pC binary messages as RFID data or fingerprint data .It is therefore necessary to define this message size . I really need aide.Merci for the person who will help me in my project.
Posted
Updated 12-Apr-16 4:30am
v4
Comments
Thanks7872 12-Apr-16 9:58am    
Post question in english only.
Member 12423349 12-Apr-16 10:17am    
How can I send digital or binary data in a client project / server in C #
Member 12423349 12-Apr-16 10:26am    
Yes
Member 12423349 12-Apr-16 10:25am    
Yes exactly send donneées binary instead of text I 'm stuck in some of my code and I can not send numbers to the server
ZurdoDev 12-Apr-16 9:59am    
What?

Maybe this CodeProject article can help you: WCF Killer[^]
 
Share this answer
 
Comments
Member 12423349 12-Apr-16 10:53am    
your code does not work
RickZeeland 12-Apr-16 13:01pm    
Well, it's not my code, but it is from Mehdi Gholam who is something of a legend on CodeProject so if you have questions he is the person to ask them.
This size should be a part of you application-layer protocol. You have to design how communicating party negotiate on size of data, formats, and many other things, as required. I'm talking about your own protocol, specific to your application, not one of the well-known ones. Please see: Application layer — Wikipedia, the free encyclopedia[^].

The communication can be organized on one of different levels. It can be done on one of several different levels of networking, remoting or WCF.
Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc,
Communication b/w two Windows applications on LAN..

—SA
 
Share this answer
 
Comments
Member 12423349 12-Apr-16 11:06am    
Thank you but I did not understand I just search a client server code in C # that not sending the characters sentences but the numbers because I have a project or spyder card must send fingerprint data and RFID a pc

Spyder card is the client and the PC and the data exchanged on the server must be nombres.Tout this must be done in C #
Sergey Alexandrovich Kryukov 12-Apr-16 11:48am    
Who mentioned "sentences"? You can communicate with any data at all, textual or not.
As to the communication with your device: you should just learn the protocol it implements and implement the client part of it. Yes, why not in C#.
—SA
Member 12423349 13-Apr-16 3:17am    
You would not simply a code in C # ?
Sergey Alexandrovich Kryukov 13-Apr-16 8:28am    
Why? What code? What "simply".
Better read what I wrote, this time, more thoroughly. :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900