Server/Client program in .NET help

shawleigh17

Member
Joined
May 6, 2009
Messages
10
Programming Experience
Beginner
Hi,
I am trying to create a server/client program in vb.net. What I am trying to do is test a battery that is running on a handheld (which runs Windows CE 5) by connecting to a "server" and sending information every 10 seconds or so. I am very new to .NET, and am not really sure how to go about doing this. I want two separate applications running, with the server-side keeping all of the data, since the battery is going to die, and I will lose any information if I keep it client-side. I am also new to networking, so I was not sure of whether I should create a Socket, or if I should try to do something else. Does anyone have any suggestions?

Thanks,
Shawna
 
Okay, well, I have decided to try the Socket method, so I am in the process of looking up a whole bunch of server/client examples. The only network coding I have done at all is in Java, and very little at that. I am a student, and I did a small networking project for homework... so not a lot of experience here. Anyways, I have found plenty of good examples, but I have one (probably very dumb) question to ask. Where do I put the server and client code?!?!? I have Visual Studio 2008 Professional, and I'm not sure if I write the code in VB.Net as a forms application or where anything is really supposed to go. In Java, I just create two classes, and then create a main for each. Run the server, run the client, and it works. Do I do that here, as well? I imagine that they go in the same project, but when I tried to create two forms (one for server, one for client), I could only run one at a time. So, I did a "show" method for the client within the server code, but I was unable to connect to the server because the connection was denied. Anyways, I don't really want to do it that way, anyway, I'd rather do it the same way that I ran it in Java, but I have no idea how. I am going to go pick up a .NET book tonight, to see if I can figure this stuff out. I need to run the client on a handheld device that has Windows CE 5, and the server on my work computer. Can somebody please help me? Even the most basic of information will probably be helpful!

Thanks!
 
Back
Top