Real-time Application Communication Over A Network?
May 2, 2011
I am starting a new project in VB, a card game modelled to be similar to a real card game.
I have the majority of the program planned out and have even started coding parts of it; my problem comes with the networking.This is a real-time card game (not turn-based) and I want to be able to play with real people (family mostly, so over LAN is what I'm after).
I have tried searching for code samples but I everything I have found seems more complicated than I feel is required for the task, introducing a lot of new concepts and not explaining them.
What I'm after is a simple way to exchange the information in real-time, I don't care so much for efficiency (at the moment) just ease of use - though if I need to wade through a heap of documentation I will. A perfect answer would tell me what the names of some of the controls/methods that would be appropriate are, even if it just re-affirms a bit of the complexity, you do not have to detail anything if you don't want to I just feel a bit at loss as to what exactly it is I am looking for!
View 3 Replies
ADVERTISEMENT
Aug 12, 2009
I am having a problem updating the network speed in real-time using a timer control. I have tried the code below and it gets the network speed but doesn't update, any ideas why?
Imports System.Net.NetworkInformation Dim myNA() As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces
Dim NetSpeed As Integer = myNA(0).Speed / 1048576
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = "Mbps: " & NetSpeed.ToString End Sub
[Code]...
View 7 Replies
May 2, 2009
I am busy with a VB2008 EXPRESS program that reads is data via a network cable. Saving the data on the same computer as my program is not a problem, but I must also make this data available to other users in the network and update their screens in real time. In other words I need a COPY of my running program on each networked computer when requested by the user in the network. I have looked at SQL, XML pages and inheritance. But I am confused, what is the best way???
View 13 Replies
Jun 15, 2011
I've use VB net to create a application that can download the real-time data from a device for every second. Now I want to upload the data to a website in real time. (So some who is far away, can also check the data through the website)
View 3 Replies
Feb 18, 2009
I would to create an application that will allow me to monitoring in real-time the screen on a remote computer, I dont want to keylog, or control mouse,ot keyboard, just watch what they do at real-time.
View 6 Replies
Jul 19, 2009
I'm writing an app that sends messages over a network to another PC that processes the message and sends back a reply (e.g. a boolean or some other data). My network communication subs (based on WCF) just give me the ability to send a message to the other PC and process any received messages.The issue is that any response received is processed by my designated network message event handler sub, but I have no way of feeding it back to the sub that called for the original message to be sent.
[Code]...
View 1 Replies
Mar 28, 2010
My issue, however, is connecting to the wireless laptops as well.
[code...]
I need to grab a list of all networked computers, and I definitely include systems on the wireless
network in that list. I'm just not sure how to approach this. Being able to enumerate through a
'tree' of all networks and systems available would be a major plus.
View 5 Replies
May 24, 2010
Is there any open-source component for VB.NET that offers real-time spelling (i.e., as you type) much like word? I found some free and open source components but without that ability.
View 2 Replies
Apr 7, 2010
How can I display a running stopwatch on my form? I am creating a timer but I do not want to use the timer class.
View 4 Replies
Jun 15, 2011
I making a simple online chat using an ftp server by downloading and uploading text. I use a thread to update the chat log continuously. But it doesn't update in real time. Is there a way to create a server that clients can upload to and download from extremely quickly? How do programs like MSN messenger or better online multiplayer games do it?
View 1 Replies
Nov 17, 2009
What would be the proper way to get the cursor position while the mousebutton is held down? I've tried using a do while loop with a background worker, but it freezes up the application.
View 1 Replies
Jan 14, 2009
I'm working on a windows forms application (.NET 4.0).My form contains a 'Fast Line' chart using the Microsoft chart control included in VS2010.The chart gets filled with about 20,000 datapoints.My application then starts receiving market data from a server via DDE (Dynamic Data Exchange) in real-time and adds it the chart.
View 5 Replies
Sep 19, 2010
I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals:Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet.It's OK to occasionally drop frames (hence UDP instead of TCP).Need low latency. The frame the remote receives should be one that was recently sent (no more than a few frames waiting in buffers).I need to be able to detect the effective bandwidth so that I can compress the frames more or less to keep frame rate up.I break up frame data into one or more datagrams of about 500 bytes and each has a sequence number and other info. The receiver reassembles the entire frame and detects if any datagrams are missing.If the receiver detects more than a certain percentage of dropped frames (e.g. 50% over the last 10 frames), I send a TCP message to the sender to slow down by 50%. Sender than slowly increases speed by 5% each subsequent frame.Using System.Net.Sockets.UdpClient to send and receive the data.I have a separate TCP channel used for control messages back to sender.My main difficulty right now is detecting the effective bandwidth and dealing with latency, especially over dial-up (max ~4,000 bytes/sec). For example, if I try to send 100,000 bytes/second using TcpClient.Send() they ALL seem to arrive (no dropped datagrams) but with large latency by the time last datagram arrives. I think the TcpClient.Send() function is blocking until the buffer is able to send which messes up my current algorithm.
Can anybody point me to any sources of information for how to:Detect actual bandwidth over UDP.A better algorithm for dynamically adjusting bandwidth to suit the available pipe.Send data smoothly at the desired bandwidth.A way to detect and keep latency down to a minimum.I have been spinning my wheels over the last week and every time I solve one problem it seems another rears up is head.
View 1 Replies
Feb 22, 2011
Make real time chart?
View 1 Replies
Apr 6, 2012
I created a form with MS Access with some dropdown menus and some check boxes. The main reason is for when the user select a check box or an option from the dropdown menu a specific phrase will appear on a Note box I created on the bottom of the form. Where I am having the problem is because I added a Text Box in Access where the user can type something in it. What I need is when something is typed inside of the text box the content should be mirrored inside of the Note Box on the bottom of the form. I was able to create the functions using VB for the dropdown menus and the check boxes but for the Free Form Text Box I dont know how to mirror the real time texting.
View 3 Replies
Jan 11, 2012
are there any ways that i can extract my data from database and display it into my listbox in real-time? which means that whatever is updated in my database must immediately be inserted into the listbox without the need of refreshing or pressing any buttons. Immediate display.
View 3 Replies
Jun 24, 2012
methods/procedures for sending real time data from a VB.net app to a web server (asp.net) for real time display. My question relates to the best method to send the data from the desktop app and the best way to receive and handle the data on the server. I'm not asking for sample code, just some idea of what methods to research. I am currently using a text file upload method but I'm sure there is a more efficient way of achieving this.
View 2 Replies
Feb 12, 2009
I am converting an application to work with SQL.I need the application to monitor a specific table, so it can instantly pick up on changes.The sql server database is on the same machine.The table it needs to monitor is called MaintenanceRecords and it is inserted into via web service.I need to display a message in my VB project when an insert occurs in MaintenanceRecords table.
View 2 Replies
Jul 30, 2010
It is possible to create a real-time application where 2 or more pc will operate on it, for e.g, a cinema ticketing system, when a seat is occupied, all the other machine will be updated in realtime accordingly.
View 2 Replies
Oct 14, 2009
I work for a company that produces accident reconstruction software. We have a vehicle dynamics program that realistically simulates the motion of a vehicle (position and rotation of car and steer angle of individual wheels, etc).
All the positions of the car are stored into an array called AMTN. The vehicle dynamics program can calculate positions at time steps finer than .005 secs (200 FPS).
I need to represent this data in real time, and so far I have not been able to accomplish this. I have tried doing this in Excel/VBA, VB6, and am currently trying to do it in VB.NET.
I have used a whole plethora of timers and counters as well as different methods of drawing lines on graphics linked to images linked to picture boxes, etc. My animation program writes/clears the screen correctly, but there is clearly some sort of lag in either the timer or writing method. I have scaled it down to 25 FPS and there is still a lag.
Here is an example of what I am trying to do with each tick of the timer:
Code:
Sub Timer1_Tick1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
MyGraphic.Clear(Color.White)
[Code].....
With each tick of the timer, the graphic is cleared, lines representing each side of the car are drawn onto the graphic, and the picturebox is then assigned to the image, which is linked to the graphic. This is just like how your asteroids program works.
Do I need to change my method? Should I use sprites? Or would it be better for me to create images/bitmaps of the animation beforehand and simply flip through them with a timer?
I'm thinking that creating the images beforehand might work because I do not have to calculate the vehicle's position as it is predetermined by my AMTN matrix.
if there is a more efficient way of displaying my vehicle on the screen that would allow for greater FPS, etc.
View 2 Replies
Nov 2, 2009
I am having a problem trying to get a real time back from this code.
Code:
Public Sub Time()
Dim StartTime As TimeSpan = TimeSpan.Parse(txtStart.Text)
Dim EndTime As TimeSpan = TimeSpan.Parse(txtEnd.Text)
[Code]....
I am using a start time of 09:25 and an end time of 10:15 to test this with. I would like it to return 50, as 50 real world minutes went by. I am getting -1331385.
This is mostly someone else's code from a different forum. I have never used a TimeSpan method before and they keep telling me it works "like what I asked for".
View 3 Replies
Nov 3, 2009
I've been a mangler of various types of code for a while now, I love doing PHP stuff but have found the need for some stand alone .exe stuff just recently and am using Microsoft Visual Basic 2008 express edition.Things have been going well so far with all my problems solved by Googling and since so many of the best solutions have come from here, I thought this would be a good place to come with this particular
View 2 Replies
Dec 1, 2011
I'm wanting to do a real time graph, as a test i'm going to set up a timer to increment x and y values and then plot them every second on the graph.
I've got hold of Zedgraph, which is quite a nice add-in that i came across, does anyone have experience of doing this?
View 11 Replies
Oct 29, 2009
I've been playing around with the TCP client/server sample code I found on [URL] but I can't seem to get it to function correctly. The problem I am having is that if I try to send data from the client a second time I get nothing back, not even an error that it couldn't send data. Every time I run the project it works the first time but that's it. When I was running the code line by line it seems to get to 'networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize))' and then it jumps over the rest of the routine.
[Code]...
View 3 Replies
Mar 13, 2009
I have made an application where I connect a VB.NET program to a PLC. I read and write to/from PLC variables.I would like any read value to be updated real time in my VB.NET program. Is there a good way of doing that? For now I update a variable by a button click.
View 7 Replies
Apr 6, 2011
I recieved a gift recently visual studio 2010 ultimate a nice suprise I have been repairing and building PC's and networks for years working in local shops and buisnesses, but always wanted to learn programming so my GF purchased this for me nice suprise. So here is my beginner question. I am making a program that will take check info ( check number, amount, date and person or buisness wrote to). I have no plans on using it just trying to learn variable structures and arrays and thought this type of program was a good start. Now I would like to take the text of a text box in runtime and use that to input a new check number into the variable structure. Just so I am not confusing anyone I will write the basic code
[Code]....
So what I would like to do is use a textox labeled check number to add check numbers into the checkrecord structure instead of having to add them into the code manually is this possible?
View 2 Replies
Apr 26, 2010
I've already wrote a simple program for connecting to a serial port that can send data to the microcontroller, do some basic arithmatic and transmit it back to my Form. This was just to see if I could set up the conection.I have a PIC Microcontroller giving an 8-bit number thats is taken from an external sensor device.What I want to do now is to present this data from the microcontroller in a textbox as a number either in real time (as the sensor output changes) or if not possible, on request (using a button).
View 15 Replies
Mar 9, 2012
I'm using EF version 4.1, and would like to have the data from the database in realtime, i.e. if you open the application it detects if there is new data in the database, and update the above it! is It possible to do this? I am using EF 4.1 code first time
View 1 Replies
Jun 5, 2012
i have a program that function as a DAQ System.i have input channel to gather information from sensors. The reading of each sensor such as voltage, current and temperature are displayed in the textbook. As we all know, DAQ system is involve taking data real-time measurement.My problem is:
1. how to update each row automatically as time goes on. the value in the textbook is updated by each second.Below figure shows how the excel can be written automatically row by row, as time ticking for a sec. this update will stop as the timer stop.
View 12 Replies
Nov 3, 2011
I have Desktop Application by which i want to upload file to the web server. All thefunctionality are going smoothly.Now i want a real time progress bar for representing uploading file status.
View 6 Replies