Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!swrinde!emory!nntp.msstate.edu!night.primate.wisc.edu!aplcenmp!dmalks
From: dmalks@aplcenmp.apl.jhu.edu (T Malks daniel brand 2028221432)
Subject: VW 2.0, Sockets, and Netmanage Chameleon 4.0
Message-ID: <D2KJDv.84u@aplcenmp.apl.jhu.edu>
Summary: VW 2.0, Sockets, and Netmanage 
Keywords: VW Sockets TCP IP PPP SLIP Netmanage
Organization: Johns Hopkins Continuing Professional Programs
Date: Tue, 17 Jan 1995 21:22:43 GMT
Lines: 42

I'm trying to configure a PPP interface for Netmanage Chameleon 4.0 TCP/IP
using VisualWorks 2.0 and DLL&CConnect.

Is anyone else out there doing serial link TCP/IP (SLIP or PPP) with
VW 2.0 and Netmanage?

Netmanage provides C code on their ftp site that will configure and dial
the SLIP or PPP connection.  This is accomplished through a call to
IOCTLSOCKET(socket handle, special number, structure with name of interface).
The code is called winslip.c.  It compiles and links fine, and, when
executed, it configures and dials my PPP connection.
 
The problem arises when I try to access IOCTLSOCKET() in Netmanage's
DLL natively from in VW; I get no exception, but also no modem dial.

Checking WSAGetLastError() may help, but ParcPlace allows
no access to this from within VW, so it means more DLL&CConnect.

I am using the gcMalloc16 and copyToHeap16 calls, since the Netmanage
DLL is 16 bit.

I think the Interface Request Structure (the third argument to
 ioctlsocket() ) may be getting corrupted.


Instead of including lots of obscure DLL&CConnect code and C code 
here, I'll simply ask:
     
     if anyone is dealing with similiar issues, 
     please reply to this post or to me personally, and I can supply a
     few more details about code specifics.

I have a copy of the C code (a couple pages) that I'm trying
to replicate, so I'd also welcome help from any VW2.0 users 
who would like to offer DLL&CConnect expertise.

Thanks,
Danny Malks

dmalks@cqalert.com
dmalks@aplcenmp.apl.jhu.edu

