Make your own free website on Tripod.com
Up ] Docs Home ]

Format of DESQview/X Socket Context Record

Back ] Next ]

Offset Size Description

00h

DWORD

pointer to next Socket Context Record, 0000h:0000h if last

04h

WORD

SFT index for socket
00FFh - if not connected
FFFFh - if detached

06h

WORD

PSP segment of owner or 0000h

08h

WORD

mapping context of owning window (see #00416 at AX=1016h)

0Ah

2 BYTEs

???

0Ch

WORD

address family

0Eh

WORD

socket type

10h

WORD

protocol

12h

WORD

socket state
0001h - created
0002h - bound
0003h - listening???
0005h - connected

14h

DWORD

timer object handle

18h

DWORD

object handle (mailbox???)

1Ch

DWORD

object handle of parent of above object or 0000h:0000h

20h

DWORD

pointer to ??? or 0000h

24h

6 BYTEs

???

2Ah

WORD

file handle for socket or FFFFh

2Ch

2 BYTEs

???

2Eh

WORD

nonzero if socket nonblocking

---network connections only---

30h

2 BYTEs

???

32h

WORD

???

34h

4 BYTEs

(big-endian) IP address of remote

38h

6 BYTEs

???