Shared Code API

Function List

Note: The Shared Code package is available only with Shared Code functionality.

The Shared Code API contains the following functions.

General Functions

op_get_packet_destination()

Returns the stream for sending a packet to a given destination protocol or transmitter.

op_schedule_timer()

Schedules a self-interrupt.

op_send_pkt()

Sends data to another protocol.

Blocking Code Functions

op_sleep()

Puts a process model to sleep for a specified time.

receive_packet()

Gets incoming data.

Socket Functions

op_accept()

Establishes a client-server connection on the server side.

op_bind()

Assigns an address to a socket.

op_close()

Closes a socket.

op_connect()

Connects a socket to a remote host.

op_listen()

Sets a socket as a listen-only connection endpoint.

op_recv()

Receives a message from a connected socket.

op_recvfrom()

Receives a message from a specified socket.

op_select()

Waits for one or more sockets to attain a specified condition.

op_send()

Sends a message to a connected socket.

op_sendto()

Sends a message to a specified socket.

op_socket()

Creates a socket.

See Package Overview for a general description of this API.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com