KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

VB TCP/IP Server (Gateway) for KiX
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Aug 02, 2004 4:40 pm    Post subject: Reply with quote

kelly, thanks - thats the best (biggest) example of dotnet sockets i've seen yet - just wish I was a work and had a printer ! (will print it off tomorrow) (i can't look at code unless its on paper) ;=)
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Aug 02, 2004 4:41 pm    Post subject: Reply with quote

ok, try again ...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Aug 02, 2004 4:42 pm    Post subject: Reply with quote

hehee:

1660 - connected:
1660 - received: Ben: Test
1660 - received: Ben: Looks Good!!!
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Mon Aug 02, 2004 4:44 pm    Post subject: Reply with quote

Probably a good thing you left out that last line Shawn. Wink
_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Aug 02, 2004 4:45 pm    Post subject: Reply with quote

lol, that works great. so you can't bind to 127.0.0.1 - have to bind to the ip address. hmmm, is this how socketwrench works ?
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Mon Aug 02, 2004 4:47 pm    Post subject: Reply with quote

It seems to be working the same. In socketwrench, if I bound the server to 127.0.0.1, then I could only connect from a client on that machine. I had to bind it to the adapter's external address in order to make a connection from the LAN. I never got to the point of doing any internet IP testing.
_________________
-Ben
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Mon Aug 02, 2004 4:49 pm    Post subject: Reply with quote

I'll check tonight to see what happens when I try to connect to a LAN computer that is configured for an internet IP address.

Also, I will definately be re-working my IM app to use this.

_________________
-Ben
Back to top
View user's profile Send private message
Bryce
KiXforms Supporter
KiXforms Supporter


Joined: 26 Mar 2003
Posts: 69

PostPosted: Mon Aug 02, 2004 5:15 pm    Post subject: Reply with quote

Shawn wrote:
probably, but you might have a version of kixforms.dll in your system32 that is stealing the re-register from you. might want to enum all your versions on the drive.



oops silly me.... i had a kixforms.dll that was in use at the time.... totaly forgot about my switchboard app running in the background!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Aug 02, 2004 5:21 pm    Post subject: Reply with quote

1636 - connected:
1636 - received: This is Bryce!!
1636 - disconnected:

hehee ... can think of some re-working of this already - will probably need (like socketwrench has) the following properties ...

LocalPort
LocalAddress
LocalHost
RemotePort

The non-blocking way of things seems to work pretty good. Just a little trickier to develop with I guess.
Back to top
View user's profile Send private message
Bryce
KiXforms Supporter
KiXforms Supporter


Joined: 26 Mar 2003
Posts: 69

PostPosted: Mon Aug 02, 2004 5:24 pm    Post subject: Reply with quote

Shawn wrote:
1636 - connected:
1636 - received: This is Bryce!!
1636 - disconnected:

hehee ... can think of some re-working of this already - will probably need (like socketwrench has) the following properties ...

LocalPort
LocalAddress
LocalHost
RemotePort

The non-blocking was of things seems to work pretty good. Just a little trickier to develop with I guess.


cool it worked... but socket.commander crashed with an error right when i hit the send button.... i might have not cut-n-pasted some of the code right...
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Mon Aug 02, 2004 5:32 pm    Post subject: Reply with quote

Was thinking the listener made good use of the new Collection object. When a incomming socket is accepted, the new socket is added to the sockets collection, indexed by handle. One could then grab the socket by handle if needed, the events should take care of themselves though. The functions get passed the socket from the new System.EventObject. Then when the connection is disconnected, one can use the handle to get the socket from the collection, and dispose of it. The socket needs this collection in order to persist.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group