Click here to Skip to main content
15,889,266 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: how do my Windows forms buttons change their border appearance at runtime? Pin
Shameel19-Oct-09 0:05
professionalShameel19-Oct-09 0:05 
QuestionSQL Command Wrapper class and configuration instance in web.config Pin
NICE TO MEET13-Oct-09 0:29
NICE TO MEET13-Oct-09 0:29 
QuestionStored procedure Pin
krishnaveer12-Oct-09 21:36
krishnaveer12-Oct-09 21:36 
AnswerRe: Stored procedure Pin
Pete O'Hanlon12-Oct-09 21:52
mvePete O'Hanlon12-Oct-09 21:52 
QuestionWPF DataGrid without database Pin
Nick Alexeev12-Oct-09 9:57
professionalNick Alexeev12-Oct-09 9:57 
AnswerRe: WPF DataGrid without database Pin
Pete O'Hanlon12-Oct-09 10:25
mvePete O'Hanlon12-Oct-09 10:25 
QuestionVB.Net Socket Questions Pin
raineym12-Oct-09 5:12
raineym12-Oct-09 5:12 
AnswerRe: VB.Net Socket Questions Pin
N a v a n e e t h12-Oct-09 16:51
N a v a n e e t h12-Oct-09 16:51 

  1. IMO, server need not broadcast it's details. Just start the server and listen on a specific port. Also server should prompt to enter a name for it. This name will be send to clients for displaying. Make sure all your clients know the port which server is using.

  2. When each client is starting, it should send a message asking for the server to provide details. UDP is the appropriate protocol for broadcasting such kind of messages. .NET framework has a UdpClient[^] class which can be useful. Your client will broadcast a message something like SERVER_DETAILS. The server program should be able to grab this message and send the servers IP, name and other required details. Receive this details on the client and show the details.
  3. Data will be send as bytes always. You need a wrapper to convert the bytes to appropriate data type. There are open-source initiatives like protocol buffers[^] which will allow to send messages by providing type safety. But in reality, for a highly scalable application, designing your own message protocol works well.

    Array list can be send after serializing it to bytes. Read about BinaryFormater class.
raineym wrote:
I am going to modify the following code as given here: http://www.devx.com/dotnet/Article/28253/0/page/2 to do that.


That is too naive way of doing a scalable networking application. You should work with Sockets directly rather than with wrapper classes like TcpListener or TcpClient. I suggest this[^] MSDN article.

Smile | :)


QuestionLabel position in the Listview Pin
lbs.allies11-Oct-09 20:39
lbs.allies11-Oct-09 20:39 
QuestionGet moving mouse position Pin
lbs.allies11-Oct-09 20:06
lbs.allies11-Oct-09 20:06 
AnswerRe: Get moving mouse position Pin
freakyit11-Oct-09 22:36
freakyit11-Oct-09 22:36 
GeneralRe: Get moving mouse position Pin
Luc Pattyn12-Oct-09 0:20
sitebuilderLuc Pattyn12-Oct-09 0:20 
GeneralRe: Get moving mouse position Pin
freakyit12-Oct-09 1:04
freakyit12-Oct-09 1:04 
QuestionGetting cd/dvd drive information Pin
offroaderdan11-Oct-09 4:42
offroaderdan11-Oct-09 4:42 
AnswerRe: Getting cd/dvd drive information Pin
Henry Minute11-Oct-09 5:12
Henry Minute11-Oct-09 5:12 
GeneralRe: Getting cd/dvd drive information Pin
offroaderdan11-Oct-09 5:39
offroaderdan11-Oct-09 5:39 
GeneralRe: Getting cd/dvd drive information Pin
Henry Minute11-Oct-09 6:00
Henry Minute11-Oct-09 6:00 
AnswerRe: Getting cd/dvd drive information [modified] Pin
Luc Pattyn11-Oct-09 6:12
sitebuilderLuc Pattyn11-Oct-09 6:12 
AnswerRe: Getting cd/dvd drive information Pin
Alan N11-Oct-09 6:43
Alan N11-Oct-09 6:43 
GeneralRe: Getting cd/dvd drive information Pin
offroaderdan11-Oct-09 6:53
offroaderdan11-Oct-09 6:53 
GeneralRe: Getting cd/dvd drive information Pin
Alan N12-Oct-09 5:01
Alan N12-Oct-09 5:01 
Questionapplication server implementation Pin
Ryan Minor11-Oct-09 2:07
Ryan Minor11-Oct-09 2:07 
AnswerRe: application server implementation Pin
Eddy Vluggen11-Oct-09 3:16
professionalEddy Vluggen11-Oct-09 3:16 
Question.NET Framework Pin
CeremBeyazit10-Oct-09 9:10
CeremBeyazit10-Oct-09 9:10 
AnswerRe: .NET Framework Pin
Not Active10-Oct-09 10:27
mentorNot Active10-Oct-09 10:27 

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.