Click here to Skip to main content
16,004,647 members
Home / Discussions / C#
   

C#

 
GeneralRegisterStartupScript Pin
kaanacar17-Mar-05 23:46
kaanacar17-Mar-05 23:46 
QuestionBaloon tips in a HTML site? Pin
Pikebu17-Mar-05 23:08
Pikebu17-Mar-05 23:08 
GeneralPrinting data from a grid Pin
StephenMcAllister17-Mar-05 21:14
StephenMcAllister17-Mar-05 21:14 
GeneralRe: Printing data from a grid Pin
Kodanda Pani17-Mar-05 22:42
Kodanda Pani17-Mar-05 22:42 
GeneralYour comment Pin
sreejith ss nair17-Mar-05 20:07
sreejith ss nair17-Mar-05 20:07 
Questioncould somebody help me? Pin
Chrislangton17-Mar-05 19:31
Chrislangton17-Mar-05 19:31 
AnswerRe: could somebody help me? Pin
Colin Angus Mackay17-Mar-05 23:02
Colin Angus Mackay17-Mar-05 23:02 
AnswerRe: could somebody help me? Pin
Sebastian Schneider18-Mar-05 2:34
Sebastian Schneider18-Mar-05 2:34 
OK, lets have a look at your problem:

Implementation of information exchange over TCP/IP.

First, there are 2 types of participants in this system: The Server (which stores all data and provides clients with the necessary information) and the Client (which displays data to the user and allows users to send information to each other).

Thus, this is called "Client-Server-Architecture".

First, you need to specify what your client should be able to do. Are you implementing a chat-system (near realtime) or a message board (not realtime).

Second, you need to specify HOW data is transferred from the client to the server and vice-versa.

This really is up to you. for a simple chat system, this would be something like:

Client-to-Server: nickname, flags (color, bold or whatever) and message.
Server-to-Client: timestamp, nickname, flags, message

The Client would be running a UI with 2 threads: one sending thread and one listening thread, where the sending thread transmits everything from an input-field when ENTER is pressed and the receiving threads listens for messages from the server and updates a chat-window accordingly.

The Server would simply have an array of sockets to his clients and forward every arriving message to every client (or specific clients, if there is a "private chat" included), stamping each message as it arrives. You could call that "mixing", as the server arranges all messages by their arrival timestamp.

With a message board, you also will have to think about retrieving only certain messages (in order to preserve bandwidth) and how to authenticate yourself at the server.

Of course, this is just my opinion.

Cheers
Sid
Generalview html Pin
frankDust17-Mar-05 19:26
frankDust17-Mar-05 19:26 
Question.NET FRAMEWORK BUG? Pin
reflex@codeproject17-Mar-05 18:22
reflex@codeproject17-Mar-05 18:22 
AnswerRe: .NET FRAMEWORK BUG? Pin
MoustafaS18-Mar-05 12:54
MoustafaS18-Mar-05 12:54 
GeneralRe: .NET FRAMEWORK BUG? Pin
reflex@codeproject18-Mar-05 16:06
reflex@codeproject18-Mar-05 16:06 
QuestionCan somebody help me make sense of this? Pin
hstock17-Mar-05 18:04
hstock17-Mar-05 18:04 
AnswerRe: Can somebody help me make sense of this? Pin
Colin Angus Mackay17-Mar-05 23:07
Colin Angus Mackay17-Mar-05 23:07 
QuestionHow to deploy web application Pin
ABBASI_RA17-Mar-05 17:12
ABBASI_RA17-Mar-05 17:12 
AnswerRe: How to deploy web application Pin
Kodanda Pani17-Mar-05 20:34
Kodanda Pani17-Mar-05 20:34 
AnswerRe: How to deploy web application Pin
V.17-Mar-05 21:32
professionalV.17-Mar-05 21:32 
GeneralListView Control Pin
cjdlv17-Mar-05 15:56
cjdlv17-Mar-05 15:56 
GeneralRe: ListView Control Pin
cjdlv17-Mar-05 17:01
cjdlv17-Mar-05 17:01 
GeneralC# call VC++ console DLL Pin
LeeeNN17-Mar-05 13:08
LeeeNN17-Mar-05 13:08 
GeneralRe: C# call VC++ console DLL Pin
Heath Stewart17-Mar-05 14:28
protectorHeath Stewart17-Mar-05 14:28 
GeneralRe: regex exclusion Pin
Christian Graus17-Mar-05 12:43
protectorChristian Graus17-Mar-05 12:43 
GeneralRe: regex exclusion Pin
Anonymous17-Mar-05 13:05
Anonymous17-Mar-05 13:05 
GeneralRe: regex exclusion Pin
Anonymous17-Mar-05 13:10
Anonymous17-Mar-05 13:10 
GeneralRe: regex exclusion Pin
Anonymous17-Mar-05 13:14
Anonymous17-Mar-05 13:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.