Re: PPP w TPSA

Autor: Jaroslaw Rafa (RAJ_at_inf.wsp.krakow.pl)
Data: Sat 31 Aug 1996 - 11:35:46 MET DST


Dnia 31 Aug 96 o godz. 5:01, Slawomir Bialek napisal(a):

> TL> A na czym polega PRAWIDŁOWO zakończona sesja PPP? Załączany do Trumpet
> TL> Winsocka skrypt ,,bye.cmd'' po prostu śle ,,ATH'' do modemu, więc efekt jest
> TL> taki sam, jak wyłączenie modemu z prądu.
>
> tak, ale zanim Trumpet wyśle 'ATH' to wysyła żądanie zakończenia
> połączenia, w ppp jest coś takiego jak 'Line Control Protocol' i m.in. do
> takiego celu służy...
>
Tak wyglada bye.cmd:

#
# Trumpet Winsock 2.1 Bye.cmd
#
# Copyright (C) 1994,1995 Peter R. Tattam &
# Trumpet Software International Pty Ltd (TSI)
# All rights reserved.
#
# Unless TSI has given prior written consent to such use,
# no permission is granted to distribute or otherwise make available
# to the public modified versions of this script for commercial purposes.
# Any permitted distribution of modified versions of the script must
# retain the copyright notice at the start of this file and must clearly
# identify those parts of the file which have been modified.
#
#
# Set %which to 1 for normal DTR hang up or
# 2 for ATH0 style hangup
#
%which = 2
status "Disconnecting modem..."
if %which = 1
  set dtr off
  sleep 1
  set dtr on
end
if %which = 2
  sleep 2
  output +++
  input 5 OK\n
  output ath0\r
  input 5 OK\n
end
status "Modem has been disconnected."
sleep 1

Gdzie tu widzisz to zadanie zakonczenia polaczenia?
Pozdrowienia,
   Jaroslaw Rafa
   raj_at_inf.wsp.krakow.pl



To archiwum zostało wygenerowane przez hypermail 2.1.7 : Wed 19 May 2004 - 15:59:22 MET DST