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

.NET (Core and Framework)

 
GeneralRe: how do my Windows forms buttons change their border appearance at runtime? Pin
Richard MacCutchan13-Oct-09 2:54
mveRichard MacCutchan13-Oct-09 2:54 
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 
I am in the middle of creating a program for people that play pen-and-paper RPGs to roll dice on their computer (like this program), but utilizes a server/client based-IM portion to send the die roll results to all the clients and I am going to modify the following code as given here: http://www.devx.com/dotnet/Article/28253/0/page/2 to do that.

As this is my first time creating a program that utilizes anything having to do with sockets, I have a couple of questions that I have yet to find an answer about on Google, various programming sites, or other forums. Here are my questions:

  1. The server will not be static, as in not always on the same LAN and with the same IP address. I intend for the person acting as the server to be able to start the server and act as the server on any LAN they happen to be attached to. How do I get the server to broadcast its IP/HOSTNAME so that clients can attach to it without the person who is acting as the server having to give the others the information to log in. For example, the person starting the server may be on a LAN with a network address of 192.168.xxx.xxx and another time on one that has an address of 10.1.xxx.xxx.
  2. That leads to the next question. How do I get the clients to detect the server? If there happens to be more than one "server" on the network (i.e., large gaming conventions and the like), I would like for the person trying to connect to be able to detect all of them and choose the correct one. Sort of like the person starting the server to give it a name like "[b][i]Big Al's Gaming Group[/i][/b]", not just using the Host Name of the computer.
  3. Just for the sake of my curiosity and knowledge, and I probably know the answer to this and have a way to send the rolls to the clients already, but can you send different datatypes other than strings over the connection and have them arrive as the same datatype? I currently have the rolls going into an arraylist to be displayed in a listview control, and would love the arraylist to be sent over the connection.

I have all but this portion of the program coded and operational.

Mike Rainey
--------------------------------

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 
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 

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.