socketwrite
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    > BEE Variables
    > BEE Syntax
    v BEE Commands
       > Variable Operations
       > Conditional
       > Loop
       > Module Calling
       > Remote Calling
       > Authentication
       > Data Access
       v Socket
          o socketcreate
          o socketbind
          o socketlisten
          o socketaccept
          o socketconnect
          o socketread
          o socketwrite
          o socketclose
          o socketcontrol
       > Special Functions
    > Database Operation
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> BEE Commands >> Socket >> socketwrite <=  =>      <  1  >  
socketwrite – write a message to a socket

BEE Script:   socketwrite socketObj [content=string] [maxlength=integer];

 

BEE Tag:     <beesocketwrite socketObj [content=string] [maxlength=integer]>

 

The "socketwrite" command write a message to the socket.

Note: "socketwrite" is binary safe.

Parameters

socket (the socketObj) is the name of the socket to write.

content is the content to be written, which can be subsequently accessed via the socketObj%write:content variable.

maxlength is the maximum number of bytes to be written.  The number of bytes have actually been written to the socket can be accessed via the socketObj%write:length.  If there are more bytes in the "content" value, only the first "maxlength" bytes will be written.  Otherwise, the entire content will be written.  The latter case is the default if "maxlength" is not specified.

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd