Search:
Type: Posts; User: 2ndmessiah
Search:
Search took 0.04 seconds.
-
It has been a long time since I had to code and even longer since I posted here. I am trying to get the hang of Tasks and async/await. So I am reworking some tcp stuff I did a few years ago. I am...
-
I appreciate you taking the time to reply and thanks for the idea.
-
I am finally moving into the 21st century and have taken the plunge into WPF, Xaml. I have read some tutorials and have a free 3 months subscription to PluralSight which I plan to use extensively.
...
-
-
It has been some time since I have posted here but I always seem to come back to this great resource when I need help.
I have a small windows form program that lets the user create controls...
-
-
I know even less than yo do, but the .net framework does have encryption classes.
would this help.
http://msdn.microsoft.com/en-us/library/System.Security.Cryptography(v=vs.110).aspx
-
There is something wrong if you are having to use Thread.Sleep.
Are you using flow control on your serial port? Is it setup correctly?
You might be overflowing the serialport writebuffer, Its...
-
I am getting a better idea now of what "Using" is about. Thanks for all the help.
-
Thats great. I suspected its was my understanding of the subject that was at fault.
So I should just created a new instance of the NetworkConnectionEventArgs class in the OnNetworkConnectionEvent...
-
@ digitalShaman. Yes, that is what I thought.
It was this bit of code that that triggered the Idisposable question.
Private Sub OnNetworkConnectionEvent(ByVal status As Boolean, ByVal...
-
Do you know, I have not. Reading it now. Thanks.
-
I have a Class.
Public Class NetworkConnectionEventArgs
Inherits EventArgs
Implements IDisposable
Public Property NetWorkConnectionStatus As Boolean
Public Property...
-
Your code is opening COM23. In your last post you said it is COM24.
A minor oversight that might be causing you a problem.
-
looking at your code
'sending AT commands
SMSPort.WriteLine("AT")
SMSPort.WriteLine("AT+CMGF=1" & vbCrLf) 'set command message format to text mode(1)...
-
I had a quick look at the link and on the packaging of the device written in bad English it says
"Supply API function for dll win OS".
That suggests there is a dll you could use to interface with...
-
Thats great. Thanks.
Just to clarify, this is part of a .dll used for handling tcpclients. When i send data over a tcp connection, I first send 4 bytes (an integer converted to a byte array, which...
-
I have this.
Private Function GetXAmountBytes(ByVal amount As Integer) As Byte()
Dim buffer(amount - 1) As Byte
Dim BytesRead As Integer = 0
Dim offset As Integer = 0
...
-
As long as I don't actually catch fish, it might just be the thing.
OK now that the IDisposable question has been answered, Is there anything else needed doing. As I said error handling needs...
-
I know this needs more work but any comments on what I need to add, to change, to improve would be helpful. I know the error handling has to be improved drastically.
Imports System.Net
Imports...
-
I feel/think you are misunderstanding the purpose of socket.endreceive.
see this link
http://msdn.microsoft.com/en-us/library/w7wtt64b.aspx
Try closing the socket in the Formclosing method. This...
-
As a very wild guess, because you have not supplied any details of the dongle and if you can treat the dongle as a modem that accepts AT commands look at this link.
...
-
-
This looks interesting
http://news.techeye.net/hardware/company-comes-up-with-ultra-accurate-kinect-alternative
-
I know a Networkstream has BeginRead method (readAsync in .net 4.5 as well) for asychronous operation. I am also aware I can create my own thread to handle this but a backGroundWorker appears to be...
-
Dang I see this thread is resolved.
Oh well.... Here is my amateurish try at a button like this. Not quite how I was going to do it but hey! here you go.
-
I am sure Dunfiddlin solution is the correct way, but it occurs to me you could always create your own control which inherits the button class. Make the backcolor transparent. Move the button text to...
-
Thanks for the reply. Yes, the byte array size can vary so I will probaby go for the class method.
-
I need to send a couple of GUIDs and a byte array over a LAN.
I thought about creating a serializable Class containing the GUIDs and byte array as properties. Then binary serialize it into a...
-
-
-
Yes I'm sure for desktop, tablets, phones, pretty much any modern computing equipment Unicode is how it is. In the 21st century we still have to deal with a lot of 20th century technology. The "ASCII...
-
You could use the TcpListener class and
the tcpclient class.
These help simplify the use of sockets. There are examples in these link but it would be wise to google other examples.
-
I did as Niya suggested, sorry you lost your bet. It does return the same stream.
Thank you everyone for taking the time to reply and the information I asked for. All I have to do now is remember...
-
MSND states.
GetStream returns a NetworkStream that you can use to send and receive data.
Ok, good.
Now the question.
Everytime I useTcpClient.GetStream (on the same TcpClient), does it...
-
Can I rely on the .CanRead Property to confirm that a there is a client connection?
I normally dont bother with it and use a try/catch block to handle an exceptions such as IOException.
-
One thought comes to mind. If your Hand shaking is set to XOn/Xoff. Does it matter if the RTS pin is raised if the pin isnt actually connected to anything. As long as the appropriate flow control...
-
I am no expert, but have you read this. ( I am sure you have)
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.handshake.aspx
and this bit about handshaking.
...
-
Seems like an opportunity to build a GUI with drop down boxes etc to allow the user to build the query, then a big buton to send it and a Rich text box to display the output.
It seems to me also...
-
In saying that....
http://msdn.microsoft.com/en-us/library/y817hyb6(v=vs.100).aspx
|
Click Here to Expand Forum to Full Width
|