Communications :: User Disconnection Not Informing Server?
Nov 30, 2008
At work we use External USB Modem for the users that are reporting on site, as there is non working on a chat program to link all users together, both the Server and Client are working fine over the internet, but Ive hit a snag andnot to sure how to go about fixing it.If a user closes the program data arrives to the server which is Zero in length this signifies to the server that the user has disconnected and all other users that are connected are informed of this.
View 3 Replies
ADVERTISEMENT
May 6, 2011
I've got a asp.net gridview and inside of the grid view I have a check box at the header of the grid view like so: [Code] This gives me a nice little check box at the top of the grid view, the event OnCheckedChanged calls a function called SelectAllRows that looks like this: [Code] So if I click this header checkbox it checks all of the items in the gridview, and if I uncheck it, it unchecks all the items in the gridview. This works fine...but what doesn't seem to work is if the page loads up and I check the grid view header checkbox to true and it selects all the items in the gridview, then i click a button such as a DELETE button that calls some server side code. That code simply loops through the grid view and checks if the checkbox has been checked, if it is it calls code to delete an item.
View 1 Replies
Dec 6, 2006
[code]...
The &H30D? i know its a hexadecimal value and may represent a message but i cant find anything about why someone would need to use one, and not just "As Integer = 703". I've found nothing in the VB.NET library or windows messages/functions docs.
View 5 Replies
May 27, 2010
For my next project i'll have to create a TCP or UDP server based application. I know how to program a server but i am interested on the limitations of such servers.
how many connections a server may be able to handle at the same time. I suspect that this limitation is based on the type of transfer and how much data or how often it is send to the server.
I also read somewhere that a windows program is limited to 25 threads (connections) per core so if i would have a quad core i can have a maximum of 99 connections granted that the server itself is also a thread. Is that correct?
If the above is correct i wonder how to handle let's say 200 users at the same time. There must be some form / way to handle bigger request loads.
View 3 Replies
Jun 3, 2008
We have a server in the building that we can poll for barometric pressure using TCP. Another developer uses LabVIEW to do this, so it may be a little more straightforward for him.
Here are the instructions:[CODE...]
View 13 Replies
Dec 2, 2008
I have a real time application (by real time I mean physiological SLOW data) not ultra-fast gaming... and I would like to serve the parameters I read to an FTP server (website) so that the data can be reviewed remotely.
I have seen a few tools out there that will do the trick, but was wondering if anybody here has experience with this, and what path(s) you recommend I take to do this in the simplest of fashions.
View 1 Replies
May 25, 2011
I'm setting up a basic TCP client/server system and I'm wondering how the back-and-forth communication should ideally work. In my specific situation, the client will have to submit login credentials, and make specific requests from the server (the server interacts with a remote database).Here is what I would THINK to do.. and I'm just looking from input from other devs.
SERVER: Wait for new connections
CLIENT: Connects to server
CLIENT: Once connected, send login credentials with an instruction code.
[code]....
And another scenario.. let's say the client wants to request a log of what's happened on the server recently (the text of a console application window).
CLIENT: Send request message to server for recent log
i.e. $REQ$,105
SERVER: If instruction = $REQ$ and request id = 105, get window text and send to client
i.e. $DATA$,105,<data here>
CLIENT: If instruction = $DATA$ and data id = 105, parse data and display to user
The data being requested could be plain text, or a .net datatable translated into XML, etc. It could be a variety of things.
View 1 Replies
Jan 29, 2009
retriving the DNS server ip of my computer. But with my codes i only manage to the IP address of my computer.
Dim IPAddress As IPAddress = Dns.GetHostEntry(Dns.GetHostName).AddressList(1)
Dim strIPAddress As String = IPAddress.ToString
TextBox3.Text = strIPAddress
View 1 Replies
Jan 11, 2010
A webserver periodically sends JPG images from a webcam via HTTP post. How do I open and display the images on a VB form from an another computer?
View 2 Replies
Apr 12, 2012
i want ask how i can send hex packet to server .i am able to connect IP and port [code] here we can see that for 3 hex 33 is used and for char "." 00 07 13 and many others are used and for its 0F used [code] it sends same Hex for each "." in packet but i want to send other values as there in original/so i want to create a byte to send from hex code/
View 2 Replies
Aug 18, 2010
I have been searching far and wide for knowledge regarding how to make a server program with a client program.Think like Msn ( Messenger ) You have the client and you send a message which is then send through the client to the server, and then to some other client (a friend might be ).I want to make a semilar program where ill make the server and the client myself, i just need a hint or two to get started.
View 1 Replies
Jul 26, 2010
This is in reference to my previous thread :
[URL]
Is there any way to detect if the DNS server is not responding for sure. That is because if I ping the server while my torrent downloads are in progress, I get a "Request timed out".
View 3 Replies
Jul 19, 2011
I have started to learn how to use the TcpListener class to create a server/client chat facility, But im having some issues as to how to perform this at the moment i have the following code for the server.
Dim counter As Integer
serverSocket.Start()
ListBox1.Items.Add("Server Started!")
counter = 0
While (True)
[Code]...
Client Accepted (I understand would most likely need a new thread for each client who is accepted, Once accepted , Return to the main loop to check for more clients.) No Client Connecting I understand that this may have to be done in a thread but ive not looked into using a seperate thread for this to infinitely run.
View 1 Replies
Apr 3, 2009
I am trying to build a sort of basic server thing and I cannot seem to get the thing to work properly. I have a client and a server. The client sends a string, the server receives then replies. I cannot get the server to continue responding.
It works in one direction Client -> Server
But because the server is continuously listening the form becomes not responding, thus I cannot send messages from the server. Although it says that its not responding I know that it is just using all of the processing for listening because when I send something from the client the server responds, just the form is stuck because of the listener.
View 1 Replies
Mar 23, 2010
I recently set up an apache server in a small computer (its an ALIX board) and i need to download some files that are going to be stored in that machine. The web server is running and I can create a file called "moo.txt" and if i go to the web browser I can see its contents Now, I need to create a vb.net application to communicate with this machine and download that file So far I have tried the following
Code:
Imports System.Net
Imports System.IO
Module Module1
[code]....
This gives me "error accessing site an exception occurred during a WebClient request"
View 1 Replies
Mar 16, 2010
I have been searching for a good code example that will place a small server program on my server and then allow me to use a client on my pc that will tell the server program to run a batch file on the server.
I thought this would be simple... I am finding it not that easy.
We have a server that users need to execute a command on however we do not want them to have login rights to the server so this will allow them to execute the batch file without having to log in.
View 1 Replies
Mar 21, 2010
Developing an application that will serve as an application server (Similar to 'Run Advertised Program' that is present in Windows Server). The downside to using Microsofts current system is that it a) requires Windows Server and b) Works only with systems setup in a proper Domain. I have a number of systems in my house and I'm fed up of downloading from the net or setting up network drives etc etc. I've tried using the code in a similar topic posted a few threads down, but it obviously doesn't support multiple client connections.
View 9 Replies
Oct 28, 2004
I am writing an application to grab attachments from messages in a particular folder in an Exchange server account and then process them. The processing of the attachments should be no problem, but what I don't know how to do is to connect to the Exchange server and access the messages.
What I would like to know is what references and imports I need, and how to access the various objects in the object model. I have been looking at CDO already, but I have had problems finding help on the Internet that is relevant to VB.NET.
For example, I'd like to know how to create the Exchange object, log in and navigate to the folder that has the relevant messages in it.
View 1 Replies
Apr 21, 2008
I am new to socket communication. I found a few samples on the web and I managed to make my own host-client communication but i wanted to go a bit further and connect to port 80 of a server and it was just a disaster! First of all I know I can just use the functions that vb has itself but I want to make my own connections ... I have got some reasons I need this one! Do I really have to make them "connect" or just somehow without connecting I get the data? So I'm stack at the point that the connection is made ... it refuses to connect.
View 7 Replies
Apr 17, 2012
Well first off let me say I am not sure if this should be in network or game programing but I think network programing is more relevant.
Anyway
I am creating my first game that runs over a network and so far everything is working. I have a server program, the clients can connect and see each other flying around. (weeeee)
However I have hit a wall when trying to make them shoot. The most easy way I can think to do this, is to have the client tell the server �hay i need a bullet pointing at x angle moving at y speed� the server then spawns a bullet entity then sends a spawn entity packet to all the clients. The main problem I see with this, is that the clients gun will have a delay based on latency.(funValue -= 1000)
The only other way I can think to do this, is to have some fake bullets spawn on the client but when the client gets the spawn bullet packet from the server, I am not sure how to keep track of what fake bullets to delete.
View 1 Replies
Mar 31, 2010
After three days research, I'm having trouble finding a simple sample app that will work as a server and wait for an ethernet connection request. When it gets one, it should complete the connection, then wait for another connection request.
View 1 Replies
Apr 23, 2009
I'm working a program, which will download files from my server. But I need, program will download random files from text file on server, for example: I have [URL].
In links.txt are these links:
[URL] .....
If I run a program, it will download first link, after finish download it will download fifth link, second link etc. Downloading of one link works fine for me, but I need download more links...
Code:
theRequest = WebRequest.Create("[URL]")
So I need: theRequest = WebRequest.Create("RANDOM LINK")
View 2 Replies
Dec 15, 2008
works fine for my purposes for checking for a new file version, but it still locks up the UI when it is connecting to the server. Once it connects, the UI unlocks but I'd like to eliminate the brief 3 second lag it causes.
View 2 Replies
Feb 10, 2010
I'm new to network programming and i'm trying to write a server that can communicate with multiple clients through tcp/ip, the clients need to communicate with the server to and with the other clients. Currently i've got a client server program that works fine for only one client:
[Code]...
I'll guess to accept multiple clients i have to create some clienthandler class at server side, but i have no idea which code it has to contain, i've already spend hours searching on google but didn't find anything usefull. Can somebody help me with this ?
View 1 Replies
Mar 17, 2009
I whould like to find the IP address of a game server that sends UDP packets to my PC. Of this server I know the fixed Port number, but not the IP address
I can read the netstat -anp udp data and store them in a text file... but this command don't displais the IP Address and the Port number of the external servers, only lots of asterisks
the question is: how to retrieve this IP address?
View 2 Replies
Jul 23, 2008
The problem I have is: When I click on cmdListen in the server form and cmdConnect in the client form,both programs won't respond and they crash for some reason I don't know.
Client source code:
Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1
[CODE]...
Code:
Imports System.Net.Sockets
Imports System.Text
Public Class Form1
[CODE]...
View 3 Replies
Jan 26, 2009
I am using VB2008 Express and am curious how to send a command via RS232 communications. The string that I need to send is 02h PON 03h. The start and end bits are 02h and 03h.
How can I convert 02h and 03h to its ascii form. In hyperterminal, I use the sequence {(hold)ALT 0 0 2} on the number pad to send the start bit.
I am using this code currently without the start and end bits
Code:
View 8 Replies
Aug 10, 2009
Multi-User Chat Program (Server & Client) with Main Server?
View 1 Replies
Oct 2, 2008
Dim sqlConn As New SqlConnection("Server=.\SQLEXPRESS;uid=;pwd=;database=ContactManager")
sqlConn.Open()
Above is my connection string, The programs runs up until sqlConn.Open() and then i get the same error, using no UID and Pass, or using a uid and pass.
Login Failed For User ''. The user is not associated with a trusted sql server connection
I have the SQL Servers authentication se to Windows Authentication and SQL Authentication. I'm using Visual Studio 2005 and SQL Server 2005.
View 10 Replies
Jul 29, 2011
i am having a console application. I am trying to connect to a sql server.
my connection string: Data Source=<Some server>;Initial Catalog=<some database>;Trusted_Connection=True.
when i am executing on my local machine it runs successfully. But when i am trying to run it on a server it is giving me the following error:
Login failed for user ' '. The user is not associated with a trusted SQL Server connection.
do i have to change my connection string? if so what it should be?
View 2 Replies