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.