Actual source code: socket.h

  1: /* 
  2:      This is the definition of the Matlab viewer structure. Note: 
  3:   each viewer has a different data structure.
  4: */

 6:  #include src/sys/viewer/viewerimpl.h
 7:  #include petscsys.h

  9: typedef struct {
 10:   int           port;
 11: } PetscViewer_Socket;

 13: #define DEFAULTPORT    5005

 15: /* different types of matrix which may be communicated */
 16: #define DENSEREAL      0
 17: #define SPARSEREAL     1
 18: #define DENSECHARACTER 2
 19: #define DENSEINT       3

 21: /* Note: DENSEREAL and DENSECHARACTER are stored exactly the same way */
 22: /* DENSECHARACTER simply has a flag set which tells that it should be */
 23: /* interpreted as a string not a numeric vector                       */