Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Sockets[Write] - ソケット接続へのテキストデータの書き込み
使い方
Write(sid, text)
パラメータ
sid - 有効な開かれたソケット ID
text - 文字列; ソケットへ書き込むテキストデータ
説明
手続き Write は、ソケット接続に対して、Maple の文字列の形式で、テキストデータを書き込むために使用されます。
引数 sid は、開かれたソケット接続に関する有効なソケット ID を表します。引数 text は、ソケット接続に書き込みたいデータ(Maple の文字列の形式)を表します。
Write は、text 引数内の全てのデータを、sid で指定されたソケットへ書き込もうと試みます。書き込みの操作に成功すると、値 true が返されます。それ以外の場合には、Write は値 false を返します。
注意: text データは、null バイトの文字を含むことができません。手続き Sockets[WriteBinary] を用いて、バイナリデータをソケット接続に書き込むことが可能です。
例
with( Sockets ): sid := Open( "localhost", "echo" ): Write( sid, "Some data to send to the echo server" );
Read( sid ); # verify it got there
Close( sid );
参照
用語集 - socket, Sockets パッケージの紹介, Sockets[Read], Sockets[WriteBinary]
Download Help Document