|
Subject:
|
Send an object from a server-socket to the host?
|
|
Posted By:
|
magsto
|
Post Date:
|
8/16/2005 6:42:57 AM
|
Hello!
I use a code, Smart Socket in the VB.NET 30 Practical Component, Solutions Toolkit found e on the Apress web page, chapter 13.
The code allows you to create a bi-directional socket connection and send a serializable object back and forth.
The code works fine, no problem, but I like to transfer the incoming object in the server to a host class, a Windows Form (Form1.vb) and not just put the text message in a MessageBox.
I tried to listen (in my Form1) to the Receive event that exist in the server class but it won't trig on the incoming message...
I imagine that I do something wrong or maybe I could use a pattern like Subsriber or Singelton or something that works like the MessageBox but instead of showing a dialog box it should trig an event in a host class... But I don't know how to perform that...
Any ideas, tips of other sources or solutions a welcomed!
Best regards, Magnus
|
|