ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 5th, 2002, 12:54 PM
Edward Mulder Edward Mulder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Piura, Peru
Posts: 5 Edward Mulder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post WinSocket Chat application

Dear forum members,

The other day I tried to build the WinSocket "chat"
program as described by Jason BrimbleComb. It seems
that I am having troubles with the part that checks if
connection failed or has been established.

Could someone help me ?


Edward Mulder

Reply With Quote
  #2  
Old July 5th, 2002, 01:19 PM
Lindset Lindset is offline
weirdomoderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: Alta, Norway
Posts: 370 Lindset User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Lindset Send a message via AIM to Lindset
Hi Edward,

I'm not experienced with the topic you're asking for help on, but I tought I'd just ask (before someone else does) if you could explain more specific what troubles you are having.. Error messages, etc..

Good luck!
__________________
Best Regards,
Håvard Lindset

Reply With Quote
  #3  
Old July 5th, 2002, 04:28 PM
Edward Mulder Edward Mulder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Piura, Peru
Posts: 5 Edward Mulder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post WinSocket chat

Hello Lindset,


The part that does not respond is the part:
"Connection Established" / "Connection Failed"
in the cmdCOnnect_Click() method.

I have attached the program I made.


Thanks,

Edward
Attached Files
File Type: zip chatter.zip (2.5 KB, 684 views)

Reply With Quote
  #4  
Old July 5th, 2002, 08:50 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hi Ed,
Are you testing both the client and server on your local machine (i.e. 127.0.0.1)? If so, make sure that the server is started first and then start the client.

It also helps if the server connects to the NetBIOS name of your computer, such as MYPC1. This avoids network conflicts at the socket level for naming. You can get the NetBIOS name of your PC by right clicking on network neighbourhood -> identity.

hope this helps. if not, let me know.

Reply With Quote
  #5  
Old July 9th, 2002, 01:45 PM
Edward Mulder Edward Mulder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Piura, Peru
Posts: 5 Edward Mulder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question WinChat program

Hi Mytch,

Indeed, I tried to run 2 instances of the program on my
PC to see if thinks work. I've tried the NetBIOS name but
there's no difference. It seems the program waits forever
for "socket connected/failed".

Greetings,

Edward

Reply With Quote
  #6  
Old July 10th, 2002, 07:43 PM
evlbob evlbob is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 5 evlbob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Ed,

looked through your code and found something that might be of use. in the cmdConnect click event you have set remotehost and remoteport settings for the winsock control. then your code says to wait for the controls state to change, perhaps you should try putting the connect command in.

Reply With Quote
  #7  
Old July 11th, 2002, 11:06 AM
Edward Mulder Edward Mulder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Piura, Peru
Posts: 5 Edward Mulder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Thanks evlbob.

That did the job. As you notice this is my second
VB program.... Next thing is to merge it with my
COM1 routines and to hook it up to my microcontroller
board.

Greetings,

Edward

Reply With Quote
  #8  
Old July 11th, 2002, 06:33 PM
evlbob evlbob is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 5 evlbob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sounds like fun, but I wonder what it is you are trying to do. can you tell us or is it top secret

Reply With Quote
  #9  
Old July 11th, 2002, 07:59 PM
Edward Mulder Edward Mulder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Piura, Peru
Posts: 5 Edward Mulder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool VB Chat + serial port

No it's not top secret - not yet ! Well here's the deal:

- microcontroller (PIC) that drives 20 displays (7x5 pixel)
- microcontroller has a serial input (RS232) from a PC
- PC sends an ASCII text string to be displayed
- PC runs a client that accepts the text string via TCP/IP

In this way I have a 20-line text display that shows user
texts that are sent over our LAN. When that all works, I
plan to dedicate an IP-number to my PC. The system
administrator obliges me to have a twisted pair directly
from the router, BEFORE entering our firewall server.

Final goal is to have a *whatever* equipment connected
to a PC that can be commanded via the Internet. It should
all be simple enough to allow students to write and modify
the sources. That's why I have chosen VB.

Edward

Reply With Quote
  #10  
Old July 12th, 2002, 12:43 AM
evlbob evlbob is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 5 evlbob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
interesting, hope everything goes smoothly

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > WinSocket Chat application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT