Using WCF Peer Channel?
Mar 9, 2012
I am architecting a program that I need some help on. I need to have a "watcher" program that will sit on a server and monitor a SQL Server. At configured intervals, the watcher will run a query on the server and create a dataset of information I want to share to any clients that are listening. I am looking at WCF Peer channel but all I can see is peer to peer chat and most of the examples I have seen are partial examples. I have looked at the example program from Microsoft but I am still a bit confused. The listener programs will receive the dataset of values from the watcher and filter the data at the local level and display the data they need and display it to the end user. I don't know if a TCP client/server would be a better solution, but the dataset may contain up to 10,000 rows of data. From what I read the WCF Peer channel will transmit at 50 mbps and should handle this load. My other option is a server/client architecture using TCP spawning a new thread for each request. Does anyone have any good examples, or articles about WCF and VB that they can point me to?
View 2 Replies
ADVERTISEMENT
May 10, 2008
1-i have a peer to peer network (every computer can be server and clinet) and i want to write a server- client program with vb 2005 and access date base to install on any comuter as a server. that serve has a data base with user name , password and credit field filled in access database .clients must connect to server and get permissin from data base field(username and password) to open an special program.
View 1 Replies
Jun 22, 2010
I want to implement peer-to-peer video streaming in my WPF project.Plz help me by referring any web site or sample code which i can use in my project.
View 4 Replies
Sep 28, 2009
I know how to add flash player in vb.net, but I cannot find the tutorial for class library that make me control on flash. And I cannot find the source code for peer-to-peer connection in flash??
View 23 Replies
May 14, 2009
As it says on the tin, I need an example of a simple winforms peer to peer chat app in VB.Net 2005 as a basis for a works project I'm working on. I've scoured the net and found many C# versions, but time is a bit too limited to convert everything to VB. Does anyone know of any such example code or a link where I can get some pointers?
View 2 Replies
May 5, 2011
i cant for the life of me get a free direct link file hosting for my updater program. what im thinking of is now creating a small peer to peer network that the user could connect to my computer and i could have a drop box with the files in it. is this a feesable solution to this problem or should i go in a different direction? if so how would i go about constructing something like this?
View 3 Replies
Aug 18, 2011
There are a lot of different generic collections available, so the wisdom in creating a new one may be questionable right from the start.However, I often find myself wanting the same features from my custom generic lists, but cannot quite find all of those features in an existing object; namely, I would like to have a generic collection which works like a List or Dictionary (much like the System.Collections. ObjectModel. Keyed Collection(Of TKey, TValue)), but also works like a BindingSource does when it is bound to an ADO object (that is, it supports full sorting and filtering as well as currency).A feature I almost never need however, is transactional adds (the BindingSource's ability to 'cancel add-new').Again, with so many existing collections out there, I should take a moment to go over the reasons why none of them quite meet my needs.There is the System. ComponentModel. BindingList(Of T) which would provide some of the functionality of a BindingSource, but has strict requirements about the type {T} implementing IComparable in order to support sorting, and does not provide filtering (it is not an IBindingListView).It also only maintains a base item list by index, so does not provide keyed access.We could use simple databinding with a custom list inheriting from System.Collections. ObjectModel. Keyed Collection(Of TKey, TValue) bound to a BindingSource, but again TValue would have to implement IComparable to support sorting and we would still not have filter support.So to get all the features I was after, I decided that the best thing would be to create a new generic collection object which implemented IList, IDictionary, IBindingList, and IBindingListView (along with a few others) and would be capable of serving as a simple list, or as a binding source while providing full sorting and filtering over any newable object type.
To that end, I've created the KeyedObjectModel which contains the KeyedBindingList(Of TKey, T) generic collection/binding source. This collection can be used as a typical list, or as a binding source (you do not need an additional BindingSource component between the collection and UI controls, although you could certainly have one).Various constructors are provided in order to initialize an instance of the collection as either an enhanced list-dictionary, or as a complete BindingSource.Any object that has a public constructor which takes no arguments can be used at type {T}, providing that the object has a property of type {TKey} which will contain unique values for each entity in a given collection.If the object implements System.ComponentModel.NotifyPropertyChanged then the collection will also bubble up property changes on the current item to the collection's CurrentItemChanged event.An implementation of IComparable on type {T} is irrelevant because sorting and filtering are performed on the property values of {T} based on the type of the specified property.The current design of KeyedBindingList(Of TKey, T) is in an 'alpha' stage.The class is mostly complete from a feature implementation standpoint, however, the code has not yet been optimized and the base collections of values, keys, and view are being maintianed in generic lists of their own, rather than raw arrays.However, even without performance tuning, the collection appears to be performing quite well, up to a few thousand entries, given the amount of flexibility and funcitonality it provides.At this stage, I would really love to get some peers to try using the compiled DLL and beat up the collection a bit.Once the code has been proven and optimized, I will publish it as an example.It is a fairly complex class though (currently made up of eleven or so partial classes) so I don't really want to post the code until it has been optimized. [code]
View 4 Replies
Jan 27, 2010
I've got a micro controller with 4 channel ADC that I want to make a program for. It will be for data logging. I want to take each channel and display it in 4 textboxes to begin with.Later I like to do some conversions of the data to show temperature , use a lookup table and a few other things in each of these boxes, but at first I'd just like to concentrate on getting the data split into each box.The chip output is 8 bytes . The first two are the channel select and the next two is the data. Output of the chip is in ASCII. I don't want to send to the chip, just receive.If I view the output in decimal I get 1xx 2xx 3xx 4xx (xx being the data to display).
View 10 Replies
Feb 2, 2010
Using vs2008, vb.net, C#, fw 3.5
I am consuming my service in my client
Service is hosted in IIS
Client(winforms MDI) is generated using svcutil using /l, /r, /ct, & /n switches
Service and client both use a MyEntities.dll
I am using nettcp with TransportWithMessageCredential. I cache the proxy in the main form
if Membership.ValidateUser(UsernameTextBox.Text, PasswordTextBox.Text)
_proxy = new MyServiceClient
_proxy.ClientCredentials.UserName.UserName = "username"[code].....
Could I subscribe to the _proxy.InnerChannel.Faulted and do that clean up there?
View 2 Replies
Nov 12, 2011
I want to play a sound in the left speaker only and then again in the right speaker.
View 6 Replies
May 6, 2011
I tried this one...but its not working.[code]...
View 1 Replies
Oct 20, 2010
Our core server is calling out to a soap web service over https on a number of different servers to confirm that a transaction has completed.The code is dotnet 3.5 (vb) and works for the various callback services we have set up until we just moved a new one into production and it is refusing to communicate, giving the following error:Unhandled Exception: System.ServiceModel.Security.SecurityNegotiationException:Could not establish secure channel for SSL/TLS with authority -> System.Net.WebException: The request washe case here.
View 3 Replies
Sep 22, 2009
I am new to ssl. I am trying to Post some data to OWA using httpwebrequest class using following code.
Dim post As Stream
post = web1.GetRequestStream
post.Write(data, 0, data.Length)
post.Close()
But when I try to get request stream to submit data using above code.(JUST PART OF CODE).i get following error. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
View 4 Replies
Jun 13, 2011
here is my code
[Code]...
my problem is how can i pass the SSL certificate cause im using https in my request,
View 2 Replies
Sep 20, 2009
i am trying to Post some data to OWA using httpwebrequest class.
Dim post As Stream
post = web1.GetRequestStream
post.Write(data, 0, data.Length)
post.Close()
but when i try to get request stream to submit data using above code.(JUST PART OF CODE).i get following error.The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
View 8 Replies
Mar 18, 2011
url...But what I'm looking for is just see if any alpha (0-254) is used in at least one of the pixels. Would the Bitmap.Lockbits and BitmapData method be the most efficient (speedy?) or is there another way. I've tried toying around with ColorPalette and the Alpha flag, but never could figure it out (and even if it is a way to check to see if the alpha channel is used at all).
View 5 Replies
Aug 28, 2009
I am developing a COM Add-in using VB.NET in Visual Studio 2008 Pro for Outlook 2003 and am having trouble assigning images to custom toolbar buttons. In a nutshell, I am having to convert from an Icon type to a stdole.IPictureDisp type so that I can assign my buttons a picture. The picture displays, but it loses the Alpha channel and the background is no longer transparent. I can verify that before the conversion to IPictureDisp object, that the PixelFormat property is set to Format32bppArgb (2498570). I am using a coding technique suggested here:[URL]. For C# users, this link [URL] shows how to modify the IPictureDisp one pixel at a time and rebuild the transparency, but I can't find similar functions in VB.NET...
View 1 Replies
Aug 27, 2010
See this site for details.>>[URL]..
View 1 Replies
Mar 25, 2010
[Code]...
i have created a control as above, this control allows me to import a png with alpha channel and random shape. and then it can display on top of any other control, i.e. textbox, picturebox,etc. and the background should always show what right under it, instead of just show its parent control. it worked if it's static mode, ie stand still in the form. but when i tried to drag/move it, the control wouldn't render itself properly,and also goes underneath other controls.
View 1 Replies
Nov 10, 2011
I would like to create a visualizer for the windows system audio. I'm looking for a way to sample the loudness of the sound currently being played. I don't need the actual sound unless required for computing the sound levels. My goal is to create something similar to the bouncing green level found on windows 7's volume control.
View 1 Replies
Aug 4, 2010
Whats the bare minimal you need to connect to a irc server then join the channel? vb6 use to use winsock whats vb.net equilivent?
View 2 Replies
Mar 11, 2012
I have an I/O device with 8 channels. I want to create a timer control for each channel with combo boxes for days, hours, minutes and radiobuttons for AM or PM. This is a crude (and not working) example of what I need:[code]
View 1 Replies