Open Multiple Socket Connects To Multiple Servers

Apr 4, 2012

i have a form where i wanted to open multiple socket connects to multiple servers. i defined "clientsocket" as a socket array

[Code]...

View 6 Replies


ADVERTISEMENT

Deleting A File Or Folder On Multiple Servers From A List Of Servers?

Sep 29, 2011

I don't really know how to code but am pretty good at tweaking. I'm trying to set up a script that I can run to delete a single file, multiple files, a folder or multiple folders on a list of servers.I was thinking that the script could read the files to be deleted from a .txt file and apply the deletion to a list of servers in another .txt file.Example:

FilesToBeDeleted.txt:
\(insert_server_name_from_list)c$Program FilesBINexample_file.rpt
or

[code].....

View 1 Replies

Communicate From Client To Server From Multiple Clients On Multiple Requests In Socket Programming?

Jan 8, 2010

I have been struggling to find a solution for this problem. What I need to do is build a server application that accepts tcp client requests from different clients running on same port say:1003. I experimented by using asynchronous mode call backs etc. but it disconnects once connection is established and does not respond for further requests from the same client.

View 1 Replies

Check Multiple Services On Different Servers

Jul 10, 2011

Im trying to check multiple services on different servers. The idea is that every time a client clicks on a checkbox for the specific server and press the "check service" button it will check the status on the service and if it's not running it will restart the service and so on for the rest of the servers.[code]

View 2 Replies

Reset IIS On Multiple Servers At Once Instead Of Looping Through?

Feb 24, 2009

I am trying to reset IIS on a set of servers all at one time instead of looping through and resetting each one individually, but I can't seem to figure out how to do it.[code]...

View 4 Replies

Communications :: Allow The Client To Connect To Multiple Servers

Oct 24, 2008

I have this code below for a client module, to allow the client to connect to multiple servers, though a IP list. The problem is that it is connecting ok to the servers, and it is sending messages to servers, but is not receiving messages FROM servers.

[Code]...

View 1 Replies

Remoting - Threading Or Running Multiple Servers

Aug 20, 2009

after my last post i dove into remoting to try to solve my performance problem in a client-server fashion.
This works very well, but i come across a big problem which i don't seem to get solved.

I made a well known singleton servicetype on the server that retrieve all customers. Whith 1 db connection this works fine. But very often customers and i use in 1 sql instance multiple databases (for each administration a separate db). so the whole purpose of a singleton object is hereby destroys as soon i connect in my class to a different db. Is there some way to overcome this for example threading or running multiple servers (for each db it's own server-application)?

View 13 Replies

Host A Web Page Showing Details From Multiple Servers

Feb 19, 2012

I have 2 servers that produce xml files and store them locally on their hard drives.Im not to sure what would be the best way to make these details viewable from any machine on the same network?I have created a asp.net web page which reads and displays the xml files. It does it fine locally, but would i have to host it on a dedicated web facing server so that it could display information from the 2 different servers on the network?

View 1 Replies

Make A Simultaneous Connection To Multiple Servers With Threads?

Mar 15, 2010

I want to make a simultaneous connection to multiple servers with threads, only to create a single connection.

Imports System.IO
Imports System.Net.Sockets
Imports System.Text

[Code].....

View 5 Replies

Multiple Socket Connections?

Nov 14, 2010

OK here is some code I nicked from web and I have changed some things, it works but only accepting one client, how do I make this accept multiple clients?

[Code]...

View 2 Replies

Multiple Socket Connections Per Thread?

Sep 8, 2011

We are using VB.NET 2010. Our application receives client connection through socket, and currently each client has its own thread and socket. We would like to have multiple socket connections per thread, but we are having a problem doing it.

Below is our current program where each client has itsown tread and socket.
Public class frmMyForm:
Private Sub AcceptSocket(ByVal Sock As SocketTools.SocketWrench)
Try
Dim oSession As SessionClass
Dim oThread As Threading.Thread
[Code] .....

View 1 Replies

Managing Multiple Client Socket Connection?

Sep 11, 2011

Am developing a server - client application using the system.net class , that will have more than 5000 simultenous client connection.what is the best way to manage multiple client connection like this?

View 3 Replies

Multiple Socket Connections - Address Of Parameters?

Mar 2, 2012

I am writing a socket client into my application. I have multiple socket connections to make to different servers.
ClientSocket(1).BeginConnect(endpoint1, AddressOf Connected, Nothing)
ClientSocket(2).BeginConnect(endpoint2, AddressOf Connected, Nothing)
Both clients call the connected sub... how do I know which one is which?
Private Sub Connected(ByVal ar As IAsyncResult)

View 3 Replies

How To Open Multiple IE (multithreading)

Jun 22, 2010

what i did was i use a select statement in opening multiple IE just for testing but the main function is what you put number on a textbox then the number the IE's will open for example i put 100 on textbox then when i click a button then 100 IE's will open so if im going to use select statement when opening 100 IE my code will be crazy... heres my sample code..

[Code]...

View 2 Replies

Open Multiple IE Windows At Once?

Sep 7, 2011

At my job, there are multiple web based tools we use. I'm trying to make a program that opens them all with one click, all in separate IE windows.

The code below, once executed, will produce 1 IE window. I'm pretty sure I understand why it's doing this, but not sure how to fix it. What I want is 3 IE windows open, at the respective sites.

VS 2008 & IE 8
Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
OpenURL("http:www.google.com")

[Code]....

Also, the way my GUI's set up I have buttons for each individual tool, when clicked they open a new tab in the same IE window, as opposed to a new IE window.

View 6 Replies

Open A Form Built In Datagrids It Connects Again To The Development DB

Jul 28, 2009

I am working with two databases stored in SQL server 2005, with VB.Net 2005. Database 1 - is the DevelopmentDB and Database 2 - LiveDB. I have two front-ends one connecting to the DevelopmentDB and the other connecting to the LIVEDB.

Now, I have a problem with the live front end. After publishing, it accepts me to log on with the Live username and password..(it connects to the LiveDB) Note: The two front ends i.e., for Development and Live have different usernames and passwords.
So, I get connected to LiveDB, however, when I open a form built in Datagrids it connects again to the DevelopmentDB.I have checked the connection strings its connecting to the Live. This is not an application or database problem. The reason being I tested it on another PC and when I logged on with my credentials it was fine. I was connected to the live database and all the forms were displaying accurate data. Therefore, my conclusion is that this is not the front end or backend problem.

View 7 Replies

How To Open Multiple Files Using "open With" Command Line Arguments

May 15, 2012

I have an application that can read certain types of files, and I have it working so that if you do "open with" from windows, it automatically starts the application and opens the selected file.

Unfortnately, I cannot get it to work for more than one file.

System.Environment.GetCommandLineArgs() contrains the following:
System.Environment.GetCommandLineArgs(0) = name and path to the .exe
System.Environment.GetCommandLineArgs(1) = name and path to the first file selected to be opened

System.Environment.GetCommandLineArgs().Length is 2 when the user tries to open 1 file, which makes sense since the first argument is the .exe itself and the 2nd is the path to the file, but it does not increase to 3 if the user tries to open 2 files... meaning that System.Environment.GetCommandLineArgs(2) is never populated Here is some sample code that shows the problem: It will recognize no files or 1 file being opened, but if you try to open multiple it will only show the first.

[Code]...

View 1 Replies

.net - Open A File From Multiple Processes?

Oct 6, 2010

Basically, I'm trying to get a program to behave in the following way:First instance of the program opens up on PC1, opens a file for Read/Write access and then acts as the master program, doing a bunch of work on some other files I don't want a whole bunch of users accessing at once.Second instance of the program starts up, tries to open the file for Read/Write access, fails, enters Slave mode, opens the file for Read access, and periodically reads the status of the other files from this file.

That's the plan, anyway. If anyone can suggest a better way to handle the master/slave decision-making.Anyway, as a lead-up to implementation, I've got two instances of Visual Studio open. One is running a project called "GetFile", the other is running a project called "TryGetFile"."GetFile" has a Private myStream As IO.FileStream object and opens the test file using this line:

myStream = IO.File.Open("\[network path] est.txt", IO.FileMode.OpenOrCreate,
IO.FileAccess.ReadWrite, IO.FileShare.ReadWrite)

This works fine and, as far as I can tell, should leave this file accessible for further Read/Write access by any other process, which is fine for this stage of the testing."TryGetFile" also has a Private myStream As IO.FileStream object, but it attempts the following open code:

myStream = IO.File.Open("\[network path] est.txt", IO.FileMode.Open,
IO.FileAccess.Read, IO.FileShare.Read)

This doesn't work at all. I get an IOException, which reports that test.txt is opened by another process and I'm not allowed to play with it.Basically, I don't see what the problem is; I don't think "TryGetFile" is asking for any file access which "GetFile" forbids it from having. As far as I can see, "GetFile" shouldn't be forbidding any kind of access at all...

[code]....

View 3 Replies

App.quit With Multiple Apps Open?

Mar 3, 2010

My program opens an excel file with excel.application's .visible=false. If the code is running and I manually open any excel file the excel file being used by code will then open up as well (making the .visible=false useless). Then at the end I use the excel.application's .quit to make sure that instance of excel quits, but it will quit every open instance of excel (even ones not opened by that code).Is there any way around this? to make sure it does not appear when other files are opened, and to make sure it only closes that one instance of the excel application.

View 4 Replies

Open And Close Multiple Forms?

Apr 24, 2009

I have an application that has multiple forms. The "main" form within this application can be accessed from other forms. However, each time this "main" form is accessed throughout the application, a "new" instance is created, resulting in multiple instances of this form being open.

I would like to have "only" one instance of this form open at one time. If it is currently opened, I would like it to be brought to the forefront, instead of opening a new instance.

View 2 Replies

Open Multiple Files Using Arguments?

Jan 24, 2010

I'm using this code to load multiple files using windows context menu, but the problem is that the aplication is open many times as files the user has selected.For example: If I select 14 files, an open them with the application, the aplicacion is opened 14 times and load the form only one. But there is a way to send all arguments once? Because %1 send only one file, or there is for example a %2 that send all file pats in one argument? If there is I'vent found.

This my actual code:

Public Class Program
Public Shared Sub Main()
Dim FurBase As New Core.clsDatabase

[code]....

View 1 Replies

Open Multiple Instances Of Same Form?

Jul 6, 2009

I am writing an application whose main purpose will be to collect user-entered data on a prescribed time interval (to be used by a dr. during anesthesia to collect patient vitals during surgery). I am attempting to accomplish this by having a form opened from the main window on every tick of a timer. The problem, is that if the user is a bit slow in entering the data on the first window, and the timer ticks again before they submit the first form, when the form is reopened (currently by simply using a show() command), the process of opening the form again simply overwrites the original form rather than creating a second instance.What is the best way to open a second (and possibly 3rd, 4th... nth) instance of the same form?

View 4 Replies

Open Program Multiple Times?

Nov 5, 2010

Is there any way that I can tell if a second version of the same program is opened by the user.

View 5 Replies

VS 2008 : Multiple Exe Open When Using For Each When SessionID <>?

Aug 21, 2010

I've been trying to find a way to determine if I need to launch an application or maximize it because it is already running for the current user. The problem I am running in to is since I'm using the For Each command the application though it now knows to open the external .exe wants to open multiple since more than one instance of the application is running without the same SessionID.

VB.NET
Private Sub OrderLaunchOrSwitch()
Dim CurrentSessionID As Integer = Process.GetCurrentProcess.SessionId
Dim hwnd As IntPtr

[code]....

View 3 Replies

Writing To Multiple Open Textstreams?

Apr 11, 2012

I am new to vb.net. I have much experience using vb 6. What I am wanting to know is how to replace the file system object. Specificaly I am wanting to use textstream arrays. How would I write the following in vb.netFor simplicity reasons I am going with the assumptions that I have a text file that is 1 byte long and is just a repating series of #'s from 0 to 9. I want any record that has a 1 to go to tsout(1), 2 to tsout(2) ect...

dim fso as new filesystemobject, tsIN as textstream, tsOut(10) as textstream
dim lineIN, i
set tsin = fso.opentextfile("C:input.txt",forreading,false)

[code].....

View 1 Replies

How To Open Multiple IE (Visual Studio 2008)

Jan 21, 2010

what i did was i use a select statement in opening multiple IE just for testing but the main function is what you put number on a textbox then the number the IE's will open for example i put 100 on textbox then when i click a button then 100 IE's will open so if im going to use select statement when opening 100 IE my code will be crazy...

Private Sub btnGenerate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGenerate.Click
Dim num As Double
Try

[code].....

View 5 Replies

Open Multiple Files In ListBox From OpenFileDialog?

Mar 15, 2009

When I select multiple paths from openFileDialog in my listBox control enter only one path by try. This is probably because that I use OpenFileDialog.FileName. I wish to load all selected files in one time...but in this case Add(OpenFileDialog.FileNames) give me the value stringArray in same listBox. I suppose that maybe exict peace of code through ItemCollection which give me opportunity that I import all file path in one try in listBox control. It was interesting because how I may implementing matrix between openFileDialog and listBox..

View 4 Replies

Open Multiple Files With File Association?

May 3, 2012

I have a tab-based application that handles multiple documents. It is designed such that the user cannot run multiple instances of application. Furthermore, the user can double-click on a document file, and the application will launch itself and open it.[code]...

View 9 Replies

Open Multiple Popup Windows In Javascript?

Aug 2, 2011

I've got an sql datareader that has a bunch of paths in it. I need to open up multiple pop up windows / multiple tabs on the browser.So I tried looping through my datareader and doing a ClientScript.RegisterStartupScript but after the code completes nothing opens up.

[Code]...

View 2 Replies

Open Multiple URL Using Visual Basic 2008?

Sep 12, 2010

i have create software using visual basic 2008 now i am stuck with several matter

i need a code that can open multiple URL in one time... when i click the button.. the URL also i can easily add or deleted it

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved