?
Solved

Winsock-Handling

Posted on 1998-07-06
1
Medium Priority
?
217 Views
Last Modified: 2013-11-13
I try to establish a TCP/IP-Connection with the VB5-winsock-control.
If the connection fails, my winsock_error-event is called in Windows NT (that's what I want), in Windows 95 I get a runtime-error and my event-handler is ignored. WHY?

(By the way, how can I set then send- and receive-buffer-size?)

Thanx!
0
Comment
Question by:meik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
joe_s earned 200 total points
ID: 1465019
I'm using the Catalyst SocketWrench control and I'm not having that problem. I assume you have code in the error event????
I forget the site but Catalyst has a WEB site where you can D/L the control. I'm using the following code, I can bring down the socket server on the remote site and my _LastError event is fired. I've had no problems at all with the Catalyst control.

    Socket1.Connect
   
    If Not Socket1.Connected Then
        msWarning = "Cannot connect to the socket!"
        Display_Warning
        PNL_MSG.Caption = msWarning
        .
        .  
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question