Net.WriteString
Skip to content
mnscript
bool Net.WriteString(string) 

Description ​

Writes a string to the current Network Transfer Message (NTM)

Arguments ​

string - The string to write to the message

Returns ​

bool - True if the data was written

Example ​

msc
using Net;
using System;

// Starts a network message with the protocol 6000, writes the string "hello", and sends it to an IP address.

number myProtocol = 6000;

Net.Start(myProtocol);
Net.WriteString("hello");
Net.SendToAddress("192.168.1.254");