Network Stream - Send / Receive Text
Sep 17, 2010
I've solved part of the problem, but something I've just realised is the information just isn't getting through and EVERY example I find uses a Console type application and what about us people who don't wanna develop a Console application? I don't but nooooo they don't seem to understand that at MS and put one example which uses exactly that.
[Code]...
View 4 Replies
ADVERTISEMENT
Feb 3, 2008
I'm working on a network chat for my office I want to add a way for users to share files or be able to send and receive file.
View 7 Replies
Oct 18, 2010
So i'm still goofing around with this chat app thing. Current when a user sends a message it sends to all clients connected. The server stores all clients and their IPs in a hash table, so what i want to do is each time a client joins, the server will broadcast the updated hashtable to each client. I know i can make a mess and get the server to broadcast each row of the hash table as a string but i think this way would be cleaner, either that or send the client object instead of the whole hash table.
[Code]...
View 3 Replies
Oct 13, 2009
I'm trying to send a XML serialized class over a network stream
the send is working
Dim IP As Net.IPAddress = System.Net.IPAddress.Parse(IPAddress)
Dim IPE As New Net.IPEndPoint(IP, 10003)
Dim TCPClient As New Net.Sockets.TcpClient
[Code]....
I always get an error {"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."} The XMLFile has the xml document in it most of the time and I can go on and everything works but 1 out of every 5 times it doesn't work at all and the XMLFile contains nothing ..
View 6 Replies
Oct 18, 2009
from and to a text file. that's no problem and was done within a hour. (tnx to google)Now the problem. i want this textfile to be online. Normally with webpages you can read and write a file very easy but i've never done this withSo far the read code works. write code works in local mode, the only thing is he won't write to an online file.i don't get any errors the code looks fine for the debugger.the code so far (local mode for testing)
read:
Private Sub read()
If runlocal = False Then
[code].....
View 1 Replies
Apr 21, 2012
What code can I use to send a simple text file to someone else's computer and choosing a save location and vice versa from theirs and loading it into a rich text box in their application that they have open, and vice versa? Their application is the same as mine (sort of like how an instant messenger works-except it does not save, send, and load text files like I am aiming for)
View 3 Replies
Jan 21, 2009
Instead of the send message text box and message display text box, I have replaced it with RichTextBox for text formatting (bold/italics/underline/font/color). The problem I am facing is when I format the text and click on send, then the text displayed on the message display box (txtMessageHistory) is unformatted. [Code] Rest of the code of client is related to formatting of the rich text boxes that is not relevant to my problem. I just need to transfer the formatted text from client to server and then back to the client the same way and display the message with text formatting.
View 13 Replies
Apr 22, 2012
I am trying to use the simple ajax script to webmethod as follows[code]...
View 3 Replies
Aug 18, 2009
Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:
[Code]...
View 6 Replies
Nov 22, 2009
i want to send Text over network to another pc. The text should be seen in a MessageBox.What technique could i use? Is UDPClient the right thing?
View 1 Replies
Jul 17, 2010
I'm trying to send a XML serialized class over a network stream the send is working
Dim IP As Net.IPAddress = System.Net.IPAddress.Parse(IPAddress)
Dim IPE As New Net.IPEndPoint(IP, 10003)
Dim TCPClient As New Net.Sockets.TcpClient
[code].....
View 2 Replies
Mar 7, 2011
How I can Receive Data From handpunch 3000 via network !?
View 2 Replies
Feb 15, 2011
I have an .net application with 2 processes, communicating using a network stream.The protocol consists of a set of commands, some with parameters, which are sent through the stream to the server. The server processes the command, and sends a response.
The protocol for one of the commands looks like this:
[code]...
Usually, this works fine. Very rarely (probably once every few millions of calls), The reading side gets the wrong values. I added code to trace the values sent and received. This shows that occasionally, the reading side gets two extra bytes, with the value 0, which was not sent by the writing side. These extra bytes appear in different places, e.g. in one case they were between i1 and i2; in another they were between the first and second byte of s2. Does anyone have any idea where these 2 bytes could come from? I checked my code, and every place that writes to the stream is traced, so it doesn't look like they are actually written to the stream. It might be worth noting that s1 is always 0, in the current implementation.
View 1 Replies
Jan 18, 2006
I have a little Logitech USB Webcam that I have attached to a laptop and I want to be able to view a video stream from it. I already gathered it will need to be a client/server model...and I probably need to use TCP/IP and/or Winsock (if its still even used)...
how to really approach this application as far as the video capture process? I don't have a need to really record video in any way so if i can just "preview" the video thats fine, although recording would be a neat bonus.
I read into the Windows Image Aquisition libraries and they seemed to be the right thing...but I wasn't so sure about the cross-network half of the equation.
View 10 Replies
Jun 1, 2009
I have looked over this and can't see where i'm going wrong, all i'm trying to do is add an item to a listbox when i a tcpclient logs on to the server. Code in question... If i put a breakpoint in i can see that initialclientresponse is set correctly.
Public Sub ConnectClient()
Dim pendingClient As TcpClient
Dim InitialClientResponse As String
[code].....
View 8 Replies
Oct 26, 2009
I am developing an application where in I need to stream audio and video in the local area network. There is calling option from my application where users can call each other(audio call or video call) in the LAN.
View 3 Replies
Jul 25, 2009
Since a few months I want to learn how to receive and send packets. Since WinSock doesn't work I think it'll be quite hard to get an easy way to do it.
I want to be able to send and get packets as a client. (TCP) I know that I need System.Net.Sockets, and that's quite everything...
View 5 Replies
Jan 11, 2009
I was going over the Screen Saver Tutorial for VB Express 2005 and i Noticed How the Screen Saver app excepts params at startup... and depending on the startup param it will display the screen saver or the options form... lets say that i want to start up a screen saver from my program, how would i send it to the screen saver to display the options form the param is "/p" or something.
View 2 Replies
Mar 11, 2010
I have a program that is meant to send and receive pictures. There are two parts, client and server, the server sending pictures, and client receiving.the server needs to send it across the internet, then the client needs to receive and show the image in a picture box.
View 1 Replies
Jun 18, 2009
how i send and recive sms through GSM like mobils using the AT command. vb.net have any api or control for it
View 1 Replies
Dec 19, 2010
I need to send and receive a large image between programs running on different machines within the same network.
I've looked at using upd however ran into problems with the size of the packets and
(after breaking the image into smaller pieces to get past this problem) the number of packets needing to be processed all at once - and ultimately packet loss.
I've also thought of sending the image by storing it in a common file folder and receiving it by using file watcher as a trigger. However, this just adds further complexities in setup where common folders don't already exist.
Assuming I'm barking up the right tree looking at tcp, can someone point me to/provide an example of how to send an image file using it (vb.net would be ideal). Also, are there practical limits to tcp package sizes?
View 2 Replies
Feb 29, 2012
I have these following lines to send bytes using socket
Dim server As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Dim myIp As IPAddress = IPAddress.Parse("myIP")
Dim ip As New IPEndPoint(myIp, Int32.Parse("myPort"))
[Code]....
As in the code, I am supposed to retrieved "Halo". Instead I keep receiving sth like "[]".
View 1 Replies
Jan 24, 2011
I'm using asynchronous to send/receive from a website I want to block the BeginGetRequestStream method which I have done, using
Code:
WaitEvent.WaitOne(1000 * 20, false);
the problem is that it blocks the UI, which I thought it did not so it basically works like GetRequestStream which does block the UI.
View 3 Replies
Apr 12, 2008
Do you know how to create a program to send and receive sms and call from PC from and or to any devices?
View 1 Replies
Jun 2, 2011
I have created an application which listens for strings being sent to my pc from a remote unit. I now need to add the function of sending strings back to the remote unit on a button press. I've searched for ages to find a solution but I'm not knowledgeable enough yet with vb.net to solve this solution.
I'm getting the error with the line opensock2 = New IO.StreamWriter(client.GetStream) saying its not connected. So I seem to need to pass the connection from the background worker to the button click, or have it somewhere else in the code to make it accessible. [Code]
View 3 Replies
May 30, 2009
as above how to do that man? I will also want to extract the information to be sent from the database. An example of what i am going to do is something like this:
Reference:[URL]..
View 8 Replies
Mar 14, 2010
I didn't found any performance counter that would monitor an process's/thread's network bandwidth and not just that of an ethernet card.
So I could see how much bytes did an application receive and send.
Did I miss something or is there another way?
View 4 Replies
Feb 21, 2011
I want to send image from server to client via .net Sockets and assign it to a picturebox. but I got problem in receiving data, it's 'Server' side code:
[Code]...
View 7 Replies
Oct 23, 2010
[code]...
Now i need to do a few hundred/thousand requests all at the same time or atleast over a short period. I am assuning i need to do this asynchronously. I have looked all over the net and tested various ways to communicate asynchronously and am pretty stumped. None of the examples out there seem to explain how i receive the xml return as a string ("which i will write to file or db")
Does anyone have any working code to do such a process?
View 1 Replies
Dec 3, 2008
I'm completely new to sockets etc.I'm trying to create an app that'll allow someone to send short information messages to several other people with the same app, using the internet and sockets(?)I've tried using code from online, but I'm getting no where.
View 4 Replies