Click here to Skip to main content
15,888,297 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need make a chat where i achieve connect a tcp client C# with client html, but there are not a lot of information about what i want to do, if someone already did something like this, i'd appreciate your help. Basically I'm trying make a windows form application to send text to client html on the same port through server made in C#, both clients has to connect to the same server and hast to send messages and revice them, like facebook chat, but including client made in C# and client made in html with javascript. I just achieved connect only clients in application made in c# but I could not connect client made in html with the client in C#.
Posted
Updated 2-Jun-15 17:31pm
v2
Comments
Sascha Lefèvre 2-Jun-15 20:26pm    
Please explain a bit more detailed what you want to do, it's not quite clear.
Member 11723960 2-Jun-15 23:44pm    
I hope you understand me, my english is not very good.
Sergey Alexandrovich Kryukov 3-Jun-15 1:00am    
You see, the whole idea of "TCP client connect to TCP client through..." is absurd, because TCP is session-oriented. By definition, a server listens for connections, and a client connects to a server. Of course, the same application can play the role of a server and a client at the same time, working on separate sockets and separate threads. (A server needs at least to threads, to listen for new connection and to read/write from/to existing connections using one or another application-level protocol.)

Using these basic facts, design your multi-process logic, whatever it is. If you cannot do it, try to present your problem in comprehensively detailed level.

—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