Send Serialize Object From Client To Server?

Aug 10, 2010

I am trying to send an Arraylist over to my server to broadcast to all other clients but I am not sure after serializing it, how do I proceed to send across. [code]....

View 1 Replies


ADVERTISEMENT

Serialize - Send Object Over The Internet To Another Client?

Jun 12, 2011

I'm trying to serialize an object so that I can send it over the internet to another client. There is 1 problem however I wrote the code and it threw an exception, I searched google to see what I had done wrong.

[Code]....

View 2 Replies

VS 2008 TCP Server / Client - Client To Send The Server 4 Numbers - Depending On The User's Choice

May 9, 2009

how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])

View 9 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

C# - Send An Object From Client-side Javascript To Server-side Code Via ASP.NET?

May 23, 2011

Can I send an object from client-side javascript to server-side code via ASP.NET ?

View 5 Replies

TCP Server/Client "Individual Send To Conected Client"?

Jul 4, 2009

I have got the server app an the Client app Both Working to what i can see But My issue is i was only asked 4 days ago if i could add a Private msg and Whisper Feature as well as admin controls I have Done what i could to it then realised i have no idea how to only send the data to the selected client.

View 14 Replies

VS 2008 : TCP Server/Client "send Hashtable To Client App"?

Jul 15, 2009

i have been working on a chat program Server side and client side i have most of the features i was asked to put in but then once i got most of the bugs out i noticed something the server admin could send whispers and alerts to single users but then when you try do do it on the client side it wont work so i looked through it all and found my issue the user list on the client is only a list of the names in server hash table so i was wondering how do i send the hashtable and all of its data E.G. user connection information to the client so that it can send commands to individual users like the server side can

vb
Public clients As New Hashtable()
' This subroutine checks to see if username already exists in the clients
' Hashtable. If it does, send a REFUSE message, otherwise confirm with a JOIN.

[code]....

i tried to send the hashtable over the same method used to send the user names to the client but it cannot convert the hashtable to a string so that wont work so my question is How do i send the hash table to the user from the server then display the username on the client ??

View 39 Replies

Send Data To A Particular Client From Server?

Aug 20, 2010

I have programmed a chat application in VB but as soon as I send any data from a client the server will send it to all. It should send a reply only to a particular client. This is the function I have used.

[Code]...

View 1 Replies

Send Message By Client / Server?

Dec 30, 2009

How to to send a message between two pcs using Client/Server?

I am using Microsoft Visual Basic 2008 Express Edition

I want to make a very simple program, when pressing a button in computer A to send a message "Hello world" and received by a computer B.

View 2 Replies

Send A Image File From Server To Client?

Apr 30, 2010

I want to send a image file from server to client?i am using this code for sending but i can't send the image....... and i also need some receiving code.

1.Public Sub SendImage(ByVal sndImg As String)
2.Try
3.Dim ns As System.Net.Sockets.NetworkStream
4.Dim client As System.Net.Sockets.TcpClient

[code].....

View 3 Replies

Send Files From Program Client To C++ Server?

Feb 19, 2012

What's the best way to do this without using FTP?

The client would need to be able to communicate with the server for several simple tasks, such as checking if the file on the client is different from the file on the server. Or issue a "create folder" command. And of course the file transfer itself.[code]...

View 1 Replies

Send Separate Packets From Server To Client?

Oct 1, 2009

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]...

View 5 Replies

Send Values To Application In Client PC From Local Server Using PHP?

Jun 21, 2012

I have three client PCs and one local server (actually a pc- Using windows 7 Ultimate on it).

In the server pc I have XAMPP installed and I am running an application developed using PHP on it. There I have the following PHP variables[code]...

View 1 Replies

2005 - Server / Client RTF Formatted Text Send / Receive

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

Application For Exam. Client Server. Receive And Send Data?

Sep 21, 2011

In our project we've decided to put an exam generator using vb.net and after generate you can send it to client computer/students. *server computer/teacher will the one who will use exam generator and send it to the client computer/student*student will recieve it and then send it back again to the server computer/teacher*teachers will going to generate an exam depends on the type of exam, so i think im going to make it a wizard type environment

View 14 Replies

VS 2008 Make The Client Send The Users Account And IP To The Server?

Oct 4, 2009

Im trying to make my client send the users Account and IP to the server. And the server puts them on a list box?

View 3 Replies

VS 2008 Send A Simple Text File To A Client From The Server?

Feb 16, 2010

I am Really Interested in Learning How to Code in Vb With Client and Servers.What should I use Tcp/Ip,Winsock? any Good Tutorials or Examples. How do I send a Simple Text file to A Client from the Server?

View 1 Replies

Asynchronous Socket Programming Vb 2008(.net) Again Server Should Able To Send The Data To Client

Feb 2, 2011

I am facing problem in asynchronous socket communication.

1)I wanted to perform connect(from client to server) operation on enter button and send the data whatever client want to send and disconnect from server. And again client should get connect to server whenever client wanted to send data. this is the mechanism.

i.e how to reuse the socket.

2)Again Server should able to send the data to client.

View 5 Replies

Html - Simulating The Web Client/web Server Interaction In A Winform Using A Webbrowser Object?

Aug 6, 2009

Simulating the web Client/web server interaction in a winform using a webbrowser object in vb2005.net

In short I'm using the web browser object as a gui for a giant treeview folder list, in the html there is a form that needs to submit to perform the action, del, rename, etc.

How do I make my program catch the submit, process it and spit out the new info out to the webbrowser item in vb2005 winform?

View 1 Replies

Client-Server-Client Multithreading - Instant Message Another Client

Jun 21, 2010

We are creating a Who wants to be a millionaire style game in VB. Our server is pulling information such as questions and answers from a Access Database and sending them to the contestants (Clients). All transfer of information is directly from the server to each client. One of the "Life Lines" we want to use is "Ask a friend", where one client is able to Instant message another client for a short time to get help on the question.

[Code]...

View 2 Replies

Create Client-server App, In Which Client Can View Files On Server?

Nov 15, 2011

basically i just want client to say "C: emp" ENTER

then, server must reply with all its files in c: emp

View 1 Replies

Communications :: Client-server Communication Program - Click On CmdListen In The Server Form And CmdConnect In The Client Form

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

De-serialize Object Inside Object?

Dec 6, 2011

Is this possible?

Public Class Foo
public var as string
public sub Load(byval filename as string)

[Code]....

Up until now i've had a function that that returns Foo as Object (I'm trying to make the serialize / deserialize process general so I can just copy and paste and avoid explicitly setting each variable)

View 1 Replies

How To Serialize An Object Into XML

Oct 9, 2011

How can I serialize a .net object into XML and then de-serialize it back?

View 3 Replies

Server/Client - Basic Tcp Server/client Application

Mar 30, 2009

I've basically made a basic tcp server/client application. The thing is that I'm behind a router and so will be the other people that use my clients. I've had to use port-forwarding or the software "rinetd"to run quite a few applications online.

Let me explain: I'm on a lan network that connects to the internet. Whenever I want to host a server - for instance a basic ftp or http server. If I give my external IP to anyone, they won't be able to access my server. Even if I portforward, it doesnt work. I have to use rinetd here. For other applications, portforwarding works. I'm not sure how these things work at all.

Anyway, my issue now is that I have created this server/client application. I'm having serious doubts that if I run the server, I'll have to either a) portforward or use rinetd to get people to connect to my server. IF I need to portforward, that's fine. However, using rinetd would really suck... My 2nd concern is as follows: IF the person running the client is in a similar situation as me (i.e he's on a lan that has a router which connects to the net), will he have to portforward or use rinetd as well? If he portforwards that's fine. But I don't think I could get people to use rinetd.... Also, if there are more than 1 person on a lan trying to connect to my server, there is a big problem when they try to portforward: they will only be able to allocate one of their internal ip to that port, and the others won't be able to connect, right? How does this work? I mean, I use many softwares like msn/skype/(some games)/firefox that do not need portforwarding/rinetd. Yet they work. My housemates(other people on the lan) use the same softwares, and it works fine. There's no clash/probs watsoever How come these run fine?

Anyway, back to my issues. Given I have no knowledge about how the above work, I was wondering whether there was a way to host a vb .net server application on an external website (external to my house) so that I might *avoid* the above mentioned problems, and to what extent that would be a sound solution.

View 11 Replies

Serialize An Object And Exchange With Another Assembly

Jun 12, 2011

I want to send a serialized object from my server to the connected client. A little problem is that the BinaryFormatter needs the source assembly to deserialize the object properly.

View 2 Replies

VS 2008 Serialize A Property Of An Object As Another?

Aug 4, 2010

Basically I have created an object that has a graphicspath as one of its properties... and i want to serialize it...

I was basically wondering if i could somehow automate the serializing of the GraphicsPath to another object (for the purposes of serializing since the graphicspath cannot be natively serialized)

eg serialize it to a list of the following class:

vb
<Serializable()> _
Public Class sPath
Public PathPoints() As PointF

[Code].....

View 1 Replies

Writing A Program With 1 Client And Server Where Client Side Creates A Text File

Dec 1, 2008

I have been reading through Atheists posts in regards to client-server and TCP client/server connection's. But how do i go about writing a program with 1 client and server where the client side creates a text file.Once the server sees there is a text file it connects and downloads it to itself or the client pushes the text file to the server.Once on the server i will read the text file and put its info into a sql db.

View 14 Replies

Serialize An Object, Exception Because Form Is Not Serializable

Jul 28, 2010

I have a class called Truck and a form called frmTruck I have some code like this in a method. It recieves obj as Truck

Dim ms As New MemoryStream(1000)
Dim bf As New BinaryFormatter(Nothing, New StreamingContext(StreamingContextStates.Clone))
bf.Serialize(ms, obj)

To simplify my code, I have basically something like this for frmTruck:

public class frmTruck
private truckValue as Truck
public sub DoSomething()

[code]....

During the LoadTruckFromDatabase function I call the SerializeTruck method, here everything goes fine. But when I call the SerializeTruck just before End sub of DoSomething, it goes wrong I get an exception saying that frmTruck is not serializable My truckinstance doesn't have any references to frmTruck...

View 12 Replies

Serialize Object In Method Binary Mode?

Sep 2, 2010

I am trying to serialize object in method binary mode. However, I would like to get a file in human-unreadable format. which means i want to encrypt file. In my memory, if i want to write text into binary file in C, when I set writing mode as binary, I will get a file in human-unreadable format, but in .net, I can't get that.

View 4 Replies







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