File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 26
26
27
27
END DoSmth ;
28
28
29
- PROCEDURE htons ( in: Int16; VAR out : Int16);
30
- BEGIN
31
- out[0 ] := in[1 ];
32
- out[1 ] := in[0 ];
33
- END htons ;
34
-
35
-
36
29
PROCEDURE ZeroByteArr ( VAR a : ARRAY OF S. BYTE );
37
30
VAR i : LONGINT ;
38
31
BEGIN
61
54
62
55
types. IntegerToInt16( sockets. AfInet, afinet);
63
56
types. IntegerToInt16( Port, port);
64
- htons( port, port0); (* only necessary on little endian computers *)
57
+ types . htons( port, port0); (* only necessary on little endian computers *)
65
58
ServAddr. SinFamily := afinet;
66
59
ServAddr. SinPort := port0;
67
60
ZeroByteArr( ServAddr. SinZero);
Original file line number Diff line number Diff line change 29
29
int16[1] := intarr[1];*) (* this will work for little endian -- noch *)
30
30
END IntegerToInt16 ;
31
31
32
+ PROCEDURE htons *( in: Int16; VAR out : Int16);
33
+ BEGIN
34
+ out[0 ] := in[1 ];
35
+ out[1 ] := in[0 ];
36
+ END htons ;
37
+
32
38
END types .
You can’t perform that action at this time.
0 commit comments