Actual source code: socket.h
1: /* $Id: socket.h,v 1.18 2001/01/15 21:43:07 bsmith Exp $ */
2: /*
3: This is the definition of the Matlab viewer structure. Note:
4: each viewer has a different data structure.
5: */
7: #include src/sys/src/viewer/viewerimpl.h
8: #include petscsys.h
10: typedef struct {
11: int port;
12: } PetscViewer_Socket;
14: #define DEFAULTPORT 5005
16: /* different types of matrix which may be communicated */
17: #define DENSEREAL 0
18: #define SPARSEREAL 1
19: #define DENSECHARACTER 2
20: #define DENSEINT 3
22: /* Note: DENSEREAL and DENSECHARACTER are stored exactly the same way */
23: /* DENSECHARACTER simply has a flag set which tells that it should be */
24: /* interpreted as a string not a numeric vector */