MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: MathLink portnumbers and internal types


  • To: mathgroup@smc.vnet.net
  • Subject: [mg11025] Re: MathLink portnumbers and internal types
  • From: miyaji@taiiku.tsukuba.ac.jp (Chikara MIYAJI)
  • Date: Mon, 16 Feb 1998 18:15:29 -0500
  • Organization: University of Tsukuba
  • References: <6c65f9$6be@smc.vnet.net>

Hi John,

In article <6c65f9$6be@smc.vnet.net>, John Fultz <jfultz@wolfram.com>
wrote:

>"####@host" for a TCP connection).  I think (but don't recall for
>certain) that MLNumber returns the actual socket number (for a TCP
>connection) from that.

I check MLNumber() by a small program. It is not a socket number but a
some internal number, I don't know what it is.

void testopen()
{
   long err;
   tlink = MLOpenString(stdenv, "-linkmode listen -linkprotocol TCP
-linkoptions MLDontInteract", &err);
   MLPutFunction(stdlink, "List", 2);
   MLPutString(stdlink, MLName(tlink));
   MLPutLongInteger(stdlink, MLNumber(tlink));
   MLEndPacket(stdlink);
}

In[42]:=testOpen[]
Out[42]={"2083@192.168.0.2",4}

bye.

  • Prev by Date: Re: [Q] Problem with combinatorica
  • Next by Date: Re: MathLink portnumbers and internal types
  • Prev by thread: Re: Re: MathLink portnumbers and internal types
  • Next by thread: Re: MathLink portnumbers and internal types