Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!cyklop.nada.kth.se!news From: kire@cyklop.nada.kth.se (Jan-Erik M}ngs) Newsgroups: comp.sys.mac.programmer Subject: MacTCP, abort an asynchronous operation, how? Message-ID: Date: 15 Mar 91 12:05:11 GMT Sender: news@nada.kth.se (Mr News) Distribution: comp Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 23 Is it possible to abort an asynchronous operation in MacTCP? Here's the problem: I do a TCPPassiveOpen asynchronous to grab a unique tcp_port on my mac. That tcp_port is used when launching a server on a unix machine (using rexecd). The server is started as "server ip_addr_of_mac tcp_port_on_mac &". The first thing the server does is to disassociate itself from the tty (the shell will exit and rexecd will close its connection) and then connect to my "tcp_port_on_mac". I can now communicate with the server on my own tcp-connection. Now, if I fail to launch the server on the unix machine, no one will be there to connect to my tcp_port and would like to abort the TCPPassiveOpen operation. Can this be done or do I have to wait for timeout? ---------------- . -- Jan-Erik "Kire" Mangs kire@nada.kth.se ---------------------