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...
What Visual Basic code can be used to assemble and send a raw packet, and receive response packets? I looked on MSDN and I couldn't find any documentation for anything used to send a packet.
I'm writing a program which uses sockets, Now the issue I'm having is, If the packet received is over a certain size, the socket then fails to receive anymore packets/data after it.
I am on a new topic in VB.NET and I am so confused I don't really even know where to start. It is sending Parsed Packets. This packet below is a login server of a game and I want to know how to send it so it automatically does it.[code]....
Now i need to send separate packets from the server to the client.For the client I am using usual Tcp but for the server I am using Winsock Control. [code]...
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.
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.
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?
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 "[]".
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]
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:
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:
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?
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.
How Can send And receive File with SerialPort in vb.net 2005 i use this sample code for sending string , and now i will know how can send any File by serialport click here there are no sample code in microsoft site i Use "Virtual Serial Ports Driver XP " to Test my sample how can use the Zmodem , Ymodem ,Xmodem , etc in vb.net by serialport ?
I want to write a Solution with VB.Net for Receive "Users" requests and Send specified information to
them with SMS.I use D-Link GSM-Modem (Model:DWM-156).
This model/type of GSM-Modem, has embeded Driver and a Application for Sending/Receiving SMS.on it, and also we can attach MicroSD to the Device. 1-Send/Receive with GSM-Modem and D-Link's application :
when i attach GSM-Modem to USB port, D-Link' app , run automatically , then I heared noises on my Speaker, like when turn on a Mobile. I think this Signals "Hand Shake" with My GSM-Network.
I coded a small tcp server/client software implementing the async methods of the socket object. In order to keep track and control of the transfered data on both sides, I decided to wrap the bytes to be transfered into small 65 000 bytes packets, sent one after each other, in varying order.In most cases, it works perfectly, and it is impressively fast. However, when I want to transfer larger data than my usual requests, say like a dozen megabytes, crippling problems start to appear, out of shit.Effectively, it seems that somehow when executed without pauses, the server sends the packets too fast, or that the client receives it too slowly. However, if I put the SendAsync method's thread to sleep for like 100ms before sendingthe next packet, everything arrives without problem on the client.[code]
i am trying to ping some terminals and all i could find for code is this
If My.Computer.Network.Ping(IPaddress, 1000) Then MsgBox(IPaddress & " pinged successfully.") Else MsgBox(IPaddress & " request timed out.") End If
it keeps comming up request timed out message. and i got this from microsoft. instead of a message box i am going to return the response to a listview control but i have to get a successful message first.
I'm trying to send a message to a specific IP/Port and receive a reply in an ASP.net website, i tried the method describd at the following link but it didn't work for me as you can see SocketException An attempt was made to access a socket in a way forbidden by its access permissions
I am sending data to my server (MyServer.com) from microcontroller device using socket connection, I want to receive data using Socket and store in access database need a tracker for this work
I am trying to make an app which can send/receive files/pictures. I am trying to make a app which will get a picture of the users screen and send it to me, and display it in a picturebox at a set interval. With this, I will be able to sort of see what someone is looking at without having to have him send screenshots constantly.
Remote assistance does not seem to work for these apps, shows black, but I can make the program already get an accurate screenshot and display it of this program, I just need to know how to make it send it to me and display it to picturebox.
The thing I have been using is the MultiUser TCP chat application off MSDN's website, I don't know if this will work, but I need to make it send somehow and display it.
Does anyone have a link to a video tut for showing how to do a Multi-User TCP Send/Receive Sample? I know there is a drag and drop tool you can use but Im interested in making it by hand to better understand how to program it my self. At some point I want to use this information to make a simple game that sends and receives data packets between two machines for a simple "fighting" game.