| iMatix home page
| << | < | > | >>
SMT Logo SMT
Version 2.81

 

smtsimu_sock_init

#include "smtsimu.h"
int
smtsimu_sock_init (void)

Synopsis

Replaces the normal sock_init() function call. Initialises the socket interface as usual, and then initialises the network delay simulation agent. Returns SOCKET_ERROR if there was an error, else returns 0.

Source Code - (smtsimu.c)

{
    /*  Really start sockets                                                 */
    if (sock_init ())
        return ((int) SOCKET_ERROR);

    /*  Now initialise the SMTSIMU agent, and return 0 or SOCKET_ERROR       */
    if (smtsimu init ())
        return ((int) SOCKET_ERROR);
    else
        return (0);
}

| << | < | > | >> iMatix Copyright © 1996-99 iMatix Corporation